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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Mail stuck in Queue folder

Status
Not open for further replies.

jermine

Programmer
Jun 15, 2001
59
SG
Hello there, I hope you can help me on this.
My mails are stuck and in queue folder under mailroot.

MailMessage msgMail = new MailMessage();
msgMail.To = "MeAsAdmin@yahoo.com"
msgMail.From = "sender@yahoo.com"
msgMail.BodyFormat= MailFormat.Html;
msgMail.Subject = "Hello!"
msgMail.Body = "You are invited!"

SmtpMail.SmtpServer= "MYCOMPUTER"; //<-- computer name
SmtpMail.Send(msgMail);

I have already added my IP address in the Relay restriction and Connection controls but still sending emails doesnt work.

Have i missed anything? i hope you gurus out there can help me. :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top