Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7176509
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T16:31:20+00:00 2026-05-28T16:31:20+00:00

I want to know how can i send an email with a standard text

  • 0

I want to know how can i send an email with a standard text like “Hello, i’m here” with my current location (longitude & latitude) when i just hit a button in a windows phone 7.5 application.

The steps are:

1) Hit the button
2) An email (from my account) automatically send it to another standard email with
my current longitude & latitude, name of the City and a standard text “Hello, i’m here”.

Thanks in advance


It works perfectly. Thanks MyKuLLSKI.

But i have a “problem”. I don’t want to open the email application. I want to skip that. When the user push the button, i want to send the email with the current location instantly and without the user do something else (more clicks).

One click = email send with location and text

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T16:31:22+00:00Added an answer on May 28, 2026 at 4:31 pm

    Hey @Thos I hope this is exactly what you are looking for. I do not have my device on hand but this should work.

    References Needed

    System.Device
    

    WMAppManifest (Add this to the Capabilities child)

    <Capability Name="ID_CAP_LOCATION" />
    

    XAML

    <Button Click="ButtonClick"/>
    

    Code Behind

    GeoCoordinateWatcher _GeoCoordinateWatcher;
    private void ButtonClick(object sender, RoutedEventArgs e)
    {
        try
        {
            _GeoCoordinateWatcher = new GeoCoordinateWatcher(GeoPositionAccuracy.Default);
            _GeoCoordinateWatcher.MovementThreshold = 10; // 10 meters. 
            _GeoCoordinateWatcher.PositionChanged += new EventHandler<GeoPositionChangedEventArgs<GeoCoordinate>>(GeoCoordinateWatcherPositionChanged);
            _GeoCoordinateWatcher.Start();
        }
    
        catch
        {
        }
    }
    
    private void GeoCoordinateWatcherPositionChanged(object sender, GeoPositionChangedEventArgs<GeoCoordinate> e)
    {
        _GeoCoordinateWatcher.PositionChanged -= GeoCoordinateWatcherPositionChanged;
    
        string latitude = e.Position.Location.Latitude.ToString("0.0000");
        string longitude = e.Position.Location.Longitude.ToString("0.0000");
        string altitude = e.Position.Location.Altitude.ToString("0.0000");
    
        _GeoCoordinateWatcher.Stop();
        _GeoCoordinateWatcher.Dispose();
        _GeoCoordinateWatcher = null;
    
        SendEmail("ToAddress@EmailClient.com", "Location", string.Concat("Hello, I'm here: ", latitude, " ", longitude, " ", altitude);
    }
    
    private void SendEmail(string to, string subject, string message)
    {
        EmailComposeTask emailcomposer = new EmailComposeTask();
        emailcomposer.To = to;
        emailcomposer.Subject = subject;
        emailcomposer.Body = message;
        emailcomposer.Show();
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to know how can i format a number like 2000000 into standard
i want know how i can send one mail to 200 user and i
How can I know filename of ImageView image? I want to send it as
I want to know if it's possible to send email in .NET 1.1 C#
I want to know can we have a JPanel with a Layout other than
i want know how i can manage multiple twitter account on iOS in my
I want to know how can a retrieve a UIImage size, depending on the
I want to know how can we know the other users of Oracle 10g
I want to know how can I perform VS2008 load test from five different
I want to know how can i fill only certain columns while filling the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.