[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Email using default email program on users computer to send string info?

Posted on 2006-04-28
1
Medium Priority
?
278 Views
Last Modified: 2010-04-16
I found this Email Sending Method on another EE post. It almost does the trick, except I would like to insert a string where 'content' currently is found.

System.Diagnostics.Process.Start("mailto:me@mymail.com?subject=My Message Here&body=content");
           
'content' needs replaced with 'textBox1.Text.ToString()'
0
Comment
Question by:kvnsdr
1 Comment
 
LVL 86

Accepted Solution

by:
Mike Tomlinson earned 1000 total points
ID: 16564202
Do something like...

        private void button1_Click_1(object sender, EventArgs e)
        {
            Email("me@mymail.com", "My Message Here", "content");          
        }

        private void Email(String recipient, String subject, String body)
        {
            System.Diagnostics.Process.Start("mailto:" + recipient + "?subject=" + subject + "&body=" + body);
        }
0

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction Although it is an old technology, serial ports are still being used by many hardware manufacturers. If you develop applications in C#, Microsoft .NET framework has SerialPort class to communicate with the serial ports.  I needed to…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
Suggested Courses

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question