web.config mailSettings

Posted on 2008-11-11
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 <>... 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="">
                <network host="" 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:BobCSD
    LVL 1

    Assisted Solution

    Check to see if the mail server allows relay from the IP of your web server.
    LVL 1

    Author Comment

    Yes, the mailserver does.
    However, I should be able to send from localhost too and that is not on a webserver.
    LVL 1

    Accepted Solution

    I found the answer, in IIS7, under the SMTP for the website, I needed to use Authentication / Windows.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Lots of people ask this question on how to extend the “MembershipProvider” to make use of custom authentication like using existing database or make use of some other way of authentication. Many blogs show you how to extend the membership provider c…
    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…
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

    758 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

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now