Learn how to a build a cloud-first strategyRegister Now


web.config mailSettings

Posted on 2008-11-11
Medium Priority
Last Modified: 2012-05-05
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()

the from and to addresses are valid.

This is what I have in my web.config:

            <smtp deliveryMethod="Network" from="support@xxx.net">
                <network host="mail.xxx.net" port="25" userName="xxx" password="xxx"/>

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.

What am I lacking?

I don't know what deliveryMethod I should use. Saw it in an example.


Question by:Starr Duskk
  • 2

Assisted Solution

btumer earned 2000 total points
ID: 22939280
Check to see if the mail server allows relay from the IP of your web server.

Author Comment

by:Starr Duskk
ID: 22941438
Yes, the mailserver does.
However, I should be able to send from localhost too and that is not on a webserver.

Accepted Solution

Starr Duskk earned 0 total points
ID: 22963313
I found the answer, in IIS7, under the SMTP for the website, I needed to use Authentication / Windows.

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In an ASP.NET application, I faced some technical problems. In this article, I list them out and show the solutions that I found.  I hope it will be useful. Problem: After closing a pop-up window, the parent page should be refreshed automaticall…
Today is the age of broadband.  More and more people are going this route determined to experience the web and it’s multitude of services as quickly and painlessly as possible. Coupled with the move to broadband, people are experiencing the web via …
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
With just a little bit of  SQL and VBA, many doors open to cool things like synchronize a list box to display data relevant to other information on a form.  If you have never written code or looked at an SQL statement before, no problem! ...  give i…
Suggested Courses

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question