mail send and recieve
ASP.NET
2
Posts
2
Posters
0
Views
1
Watching
-
Hi. I want a sample code for sending email and, receiving emails and showing them in my site. Best wishes
-
Hi. I want a sample code for sending email and, receiving emails and showing them in my site. Best wishes
here is the sample for sending mails.. for receiving canu be more clear in u r questions -------- Imports System.Web.Mail Dim objMail As New MailMessage strFromMail = ' from@from.com objMail.BodyFormat = MailFormat.Html objMail.From = "strFromMail" objMail.To = "mailTo" objMail.Subject = "mailSubject" objMail.Body = "mailbody" Try SmtpMail.SmtpServer = "Mail server name" SmtpMail.Send(objMail) Catch ex As Exception Finally objMail = Nothing End Try -------- Regards, Jayamaruthi.A -- modified at 2:25 Monday 3rd July, 2006