email

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I'm new to windos programming using vb.net. I would like to send a simple email message from my app for registration purposes. How can I do this without knowing what mail program the user has on their machine?

Any pointers would be appreciated.
 
use

system.web.mail

add a refernece to this in the VS.net IDE and the use an imports statement
to access the object
RitaK said:
I'm new to windos programming using vb.net. I would like to send a simple
email message from my app for registration purposes. How can I do this
without knowing what mail program the user has on their machine?
 
* "=?Utf-8?B?Uml0YUs=?= said:
I'm new to windos programming using vb.net. I would like to send a
simple email message from my app for registration purposes. How can I
do this without knowing what mail program the user has on their machine?

Have a look at the 'System.Web.Mail' namespace (requires a reference to
"System.Web.dll").
 
The C# way is

using System.Diagnostics;

string toEmail = "(e-mail address removed)";
string subject = "Love the Program";
string body = "Thanks a lot";
string message = string.Format( "mailto:{0}?subject={1}&body={2}",
toEmail, subject, body );

Process.Start( message );


Add this to a linklabel and bobs your uncle.

VB should not be too disimilar

Hope this helps

Publicjoe
C# Tutorial at http://www.publicjoe.f9.co.uk/csharp/tut.html
C# Snippets at http://www.publicjoe.f9.co.uk/csharp/snip/snippets.html
C# Ebook at http://www.publicjoe.f9.co.uk/csharp/samples/ebook.html

RitaK said:
I'm new to windos programming using vb.net. I would like to send a simple
email message from my app for registration purposes. How can I do this
without knowing what mail program the user has on their machine?
 
Back
Top