S
supz
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 = "(e-mail address removed)";
objEmail.To = "(e-mail address removed)";
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
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 = "(e-mail address removed)";
objEmail.To = "(e-mail address removed)";
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