Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Local SMTP server doesn't send emails and puts them in Queue folder...

Status
Not open for further replies.

Plato2

Programmer
Dec 6, 2002
192
US
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
 
Are you sure the server.com domain has a valid MX record set up for it?
 
yes it is valid because it works on another server but not on my local pc
 
I have the same issue on my 2003 server IIS6. If the message gets to the queue folder then your code is correct. I found that if I am not logged in all the mail gets sent. Try logging off and testing it that way.

And i will continue to search for the reason my queue freezes when i am logged in :)..........
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top