Send Email
-
I want to send an emai from my application to particular email id. how can i do this? Mogha Ritesh
-
I want to send an emai from my application to particular email id. how can i do this? Mogha Ritesh
check this Link http://www.developer.com/net/asp/article.php/3096831[^]
-
I want to send an emai from my application to particular email id. how can i do this? Mogha Ritesh
dude...explore System.Net.Mail namespace
Koushik
-
I want to send an emai from my application to particular email id. how can i do this? Mogha Ritesh
Use this function
public bool SendMail(string to,string from,string subject,string cc,string bcc,string attachement,string body) { //Here Attachement is a Path to a file which is going to be attached SmtpMail.SmtpServer=ConfigurationSettings.AppSettings["SmtpServer"].ToString(); MailMessage objmail = new MailMessage(); objmail.BodyFormat = MailFormat.Html; objmail.To = to; objmail.From =from; objmail.Subject = subject; objmail.Body = body; if(cc!="") { objmail.Cc = cc; } if(bcc!="") { objmail.Bcc = bcc; } if(attachement!="") { objmail.Attachments.Add(new MailAttachment(attachement)); } try { SmtpMail.Send(objmail); return true; } catch { return false; } }
Keep Smiling :) -
dude...explore System.Net.Mail namespace
Koushik
I have already imported