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

Posted on 2006-04-28
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(" Message Here&body=content");
'content' needs replaced with 'textBox1.Text.ToString()'
Question by:kvnsdr
    1 Comment
    LVL 85

    Accepted Solution

    Do something like...

            private void button1_Click_1(object sender, EventArgs e)
                Email("", "My Message Here", "content");          

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

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    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…
    This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
    In this sixth video of the Xpdf series, we discuss and demonstrate the PDFtoPNG utility, which converts a multi-page PDF file to separate color, grayscale, or monochrome PNG files, creating one PNG file for each page in the PDF. It does this via a c…
    Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

    760 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

    Need Help in Real-Time?

    Connect with top rated Experts

    9 Experts available now in Live!

    Get 1:1 Help Now