I am using VS2008 3.5 framework SP1, Windows Web Server 2008 3.5 SP1, and a separate mail server using Windows 2000 OS and Merak Mail. I sent mail all the time from my windows 2000 web site to the mail server, but this is the first attempt I've tried to send mail from my new windows 2008 web server.
I am getting this error when sending mail from both my local host and web server:
Syntax error in parameters or arguments. The server response was: 5.7.1 <support@xxx.net>... Permission Denied
On the client.send:
Dim client As New SmtpClient()
client.Send(message)
the from and to addresses are valid.
This is what I have in my web.config:
<system.net>
<mailSettings>
<smtp deliveryMethod="Network" from="support@xxx.net">
<network host="mail.xxx.net" port="25" userName="xxx" password="xxx"/>
</smtp>
</mailSettings>
</system.net>
I have also tried the host as the actual IP address for the mail server too.
I do have a firewall. the mail server is setup in the firewall and is very actively in use, but from another web server with asp classic pages.
I have a netgear firewall.
So there are 3 servers, web server 2000 which sends mail fine, web server2008 which is new and hasn't yet sent mail, and mail server. The mail server allows relay to the web server's IP, but either way should work with the authentication.
What am I lacking?
I don't know what deliveryMethod I should use. Saw it in an example.
thanks.
I am getting this error when sending mail from both my local host and web server:
Syntax error in parameters or arguments. The server response was: 5.7.1 <support@xxx.net>... Permission Denied
On the client.send:
Dim client As New SmtpClient()
client.Send(message)
the from and to addresses are valid.
This is what I have in my web.config:
<system.net>
<mailSettings>
<smtp deliveryMethod="Network" from="support@xxx.net">
<network host="mail.xxx.net" port="25" userName="xxx" password="xxx"/>
</smtp>
</mailSettings>
</system.net>
I have also tried the host as the actual IP address for the mail server too.
I do have a firewall. the mail server is setup in the firewall and is very actively in use, but from another web server with asp classic pages.
I have a netgear firewall.
So there are 3 servers, web server 2000 which sends mail fine, web server2008 which is new and hasn't yet sent mail, and mail server. The mail server allows relay to the web server's IP, but either way should work with the authentication.
What am I lacking?
I don't know what deliveryMethod I should use. Saw it in an example.
thanks.