Home » questions » Sending Emails through vb.net?
Sending Emails through vb.net?
Dim MMsg As MailMessage = New MailMessage
MMsg.BodyEncoding = Encoding.Default
MMsg.From = "asdf@hotmail.com"
MMsg.To = "test@gmail.com"
MMsg.Subject = "Email with Subject Demo"
MMsg.Body = "This is the main body of the email"
MMsg.Priority = MailPriority.High
MMsg.BodyFormat = MailFormat.Html
System.Web.Mail.SmtpMail.SmtpServer = "127.0.0.1"
System.Web.Mail.SmtpMail.Send(MMsg)
lblmsg.Text = "Message sent successfully!"
This code successfully run no exception occurs but mails are not being recived on the TO Address and mails are still in the folder ie,"C:\Inetpub\mailroot\Queue". how to solve it

Answers
Florin S
On 2006-08-15 07:13:17
dinosf
On 2006-08-15 09:18:36
Catalin4faith
On 2006-08-15 06:41:08