SmtpMail.Send() No Error but no Email either.
- From: "supz" <supz_s@xxxxxxxxx>
- Date: 26 Feb 2006 23:11:40 -0800
Hi,
I use the standard code given below to send an email from an ASP.NET
web form. The code executes fine but no Email is sent. All emails get
queued in the Inetpub mail queue.
I'm using my local default SMTP Server and my from address is a valid
Yahoo/Hotmail address. I have configures the local SMTP Server to allow
the IP Address 127.0.0.1.
Could this be because yahoo/hotmail servers need authentication?
Here's the code I use.
private void SendSimpleMail()
{
MailMessage objEmail = New MailMessage();
objEmail.From = "valid_id@xxxxxxxxx";
objEmail.To = "another_valid_id@xxxxxxxxxxx";
objEmail.Subject = "Test Mail";
objEmail.Body = "Test Mail - Body";
SmtpMail.SmtpServer = "127.0.0.1";
SmtpMail.Send(objEmail);
}
Any idea what could be wrong or what I need to do to send a simple
email from ASP.NET? Any help would be appreaciated.
Regards,
supz
.
- Follow-Ups:
- Re: SmtpMail.Send() No Error but no Email either.
- From: sloan
- Re: SmtpMail.Send() No Error but no Email either.
- From: sloan
- Re: SmtpMail.Send() No Error but no Email either.
- From: John Timney \( MVP \)
- Re: SmtpMail.Send() No Error but no Email either.
- From: Mark Rae
- Re: SmtpMail.Send() No Error but no Email either.
- Prev by Date: Re: repeater show the field data of 2 same table
- Next by Date: Re: SmtpMail.Send() No Error but no Email either.
- Previous by thread: explicit localization, sample testing approach not work
- Next by thread: Re: SmtpMail.Send() No Error but no Email either.
- Index(es):
Relevant Pages
|