|
Home > Archive > IIS and SMTP > May 2006 > System.Web.Mail and Virtual SMTP Server
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
System.Web.Mail and Virtual SMTP Server
|
|
| Nidhee Pathak 2006-05-09, 1:17 pm |
| Hi,
I am not able to send out emails through a windows service using the
System.Web.Mail namespace.
When I use smtpauthenticate = 1 or 2, I get an exception
{"The message could not be sent to the SMTP server. The transport error
code was 0x80040217. The server response was not available\r\n" }
When I use smtpauthenticate = 0, I get the following exception -
{"The server rejected one or more recipient addresses. The server
response was: 550 5.7.1 Unable to relay for X@ABC.com\r\n" }
But when it is 0, I am able to send the emails within the domain but
not outside the domain. I was using the domain's exchange server as the
smtp server.
I was thinking of setting of setting up a virtual smtp server on the
server that has the windows service running. I wanted to know whether
it was a good idea to do so?
Thanks,
Nidhee.
| |
| Jeff Cochran 2006-05-15, 1:18 am |
| On 9 May 2006 07:36:36 -0700, "Nidhee Pathak" <nidhee@gmail.com>
wrote:
>I am not able to send out emails through a windows service using the
>System.Web.Mail namespace.
>When I use smtpauthenticate = 1 or 2, I get an exception
>{"The message could not be sent to the SMTP server. The transport error
>code was 0x80040217. The server response was not available\r\n" }
>
>When I use smtpauthenticate = 0, I get the following exception -
>{"The server rejected one or more recipient addresses. The server
>response was: 550 5.7.1 Unable to relay for X@ABC.com\r\n" }
>
>But when it is 0, I am able to send the emails within the domain but
>not outside the domain. I was using the domain's exchange server as the
>smtp server.
>
>I was thinking of setting of setting up a virtual smtp server on the
>server that has the windows service running. I wanted to know whether
>it was a good idea to do so?
You could. I'd fix your relay issues in Exchange though.
Jeff
|
|
|
|
|