I'm trying to send email in asp.net
like:
Dim mail As New MailMessage
mail.From = "FromEmail@server.com"
mail.To = "ToEmail@server.com"
mail.BodyFormat = MailFormat.Html
mail.Subject = "testing..."
mail.Body = "cool"
SmtpServer = Request.ServerVariables("SERVER_NAME")
SmtpMail.Send(mail)
What can be the reason why my emails are not sent from local SMTP server and added to Queue Folder
Thanks in advance
like:
Dim mail As New MailMessage
mail.From = "FromEmail@server.com"
mail.To = "ToEmail@server.com"
mail.BodyFormat = MailFormat.Html
mail.Subject = "testing..."
mail.Body = "cool"
SmtpServer = Request.ServerVariables("SERVER_NAME")
SmtpMail.Send(mail)
What can be the reason why my emails are not sent from local SMTP server and added to Queue Folder
Thanks in advance