B
Brett Porter
Hi,
My ASP.Net applications frequently make use of the System.Web.Mail
namespace to send emails. I have set SmtpMail.SmtpServer = "localhost"
and the emails send out fine UNTIL an email is sent to the same
address as the server / website address i.e.
If the web address is www.servername.com an email sent using SMTPMail
to (e-mail address removed) effectively does not reach the destination.
The reason for this is that the SMTP Server is not the same server
that the website is hosted on but requires authentication so I cannot
simply change the SmtpMail.SmtpServer property as authentication fails
and the email is not sent. In IIS the mail root directory seems to
have created an email account where all the emails sent from the site
are delivered (where the email address matches the server / web
address) however because the server is not the SMTP server these
emails are never collected.
So my question is: In IIS is there any way to turn off the local
delivery of emails if they have the same address as the server
address?
My ASP.Net applications frequently make use of the System.Web.Mail
namespace to send emails. I have set SmtpMail.SmtpServer = "localhost"
and the emails send out fine UNTIL an email is sent to the same
address as the server / website address i.e.
If the web address is www.servername.com an email sent using SMTPMail
to (e-mail address removed) effectively does not reach the destination.
The reason for this is that the SMTP Server is not the same server
that the website is hosted on but requires authentication so I cannot
simply change the SmtpMail.SmtpServer property as authentication fails
and the email is not sent. In IIS the mail root directory seems to
have created an email account where all the emails sent from the site
are delivered (where the email address matches the server / web
address) however because the server is not the SMTP server these
emails are never collected.
So my question is: In IIS is there any way to turn off the local
delivery of emails if they have the same address as the server
address?