Hi folks.,
is it possible to send mail from localhost using system.net.Mail service?
if so then let me know the settings and configurations to be set initially..
this is my code which i tried to implement
try
{
string mailBody = "Hello world Hello world Hello world vHello world";
#region mail1
MailMessage MailMsg = new MailMessage("xxxx@hotmail.com", "yyyy@hotmail.com");
MailMsg.BodyEncoding = Encoding.UTF8;
MailMsg.Subject = "hello";
MailMsg.Body = mailBody;
Attachment at = new Attachment(HttpContext.Current.Server.MapPath("~/images/fun.jpg"));
MailMsg.Attachments.Add(at);
MailMsg.Priority = MailPriority.High;
MailMsg.IsBodyHtml = true;
SmtpCli ...
Go to the complete details ...