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; ...
Java
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!!
Niradhip ChakrabortyRank #429 · 5.8K reputationPosted Apr 17, 2009, 3:58 AM EDT
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 !
George Loveless13 reputationPosted Apr 17, 2009, 11:19 AM EDT
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. : )
mathieu_cupryk7 reputationPosted May 18, 2009, 7:35 PM EDT