I basically want to send an e-mail text message (see http://www.slipstick.com/outlook/smscell.htm).
Here's what I have:
... using System.Web.Mail; ...
MailMessage mail = new MailMessage();
mail.From = "[email protected]";
mail.To = "[email protected]";
mail.Subject = "test";
mail.Body = "test body";
SmtpMail.SmtpServer = ""; // not sure about this...? ("www.toad.com".. or something?)
// and then send the mail
SmtpMail.Send(mail);
Thanks Tons!!
mathieu_cuprykPosted May 18, 2009, 11:35 PM
George LovelessPosted Apr 17, 2009, 3:19 PM
http://www.shabdar.org/send-email-using-gmail-account-asp-net-csharp.html
however this seems to give some people a time out error because they can not connect to the server. I seem to be having this same time out problem. I'm really confused. I 'll keep looking into it. any suggestions are welcome. : )
Niradhip ChakrabortyPosted Apr 17, 2009, 7:58 AM
smtpserver is necessary for sending a mail in c#.net
if u want to send the email means use gmail smtpserver in your project "smtp.gmail.com"
use your username and password for that !