Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Kevin Coster 83 posts 120 karma points
    Jan 06, 2010 @ 00:48
    Kevin Coster
    0

    Emailing with CWS and Exchange 2007

    Umbraco Version 4.0.2.1 Windows Server 2003  and IIS 6 Exchange 2007

    Using CWS for a site and want to use the exchange server send the emails from contact form & email a friend however having issues with getting this to work when you fillin the form and click submit you get the following error:

    The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.7.1 Client was not authenticated

    Is there something extra i need to be adding to the web.config apart from the standard smtp section or is there something in exchange i should be looking into?

    Has anyone managed to email using an exchange server?

  • Thomas Höhler 1237 posts 1709 karma points MVP
    Jan 06, 2010 @ 09:54
    Thomas Höhler
    0

    If you are using umbraco.library.SendMail you have to set the credentials in the web.config like this:

      <system.net>
    <mailSettings>
    <smtp>
    <network host="HOSTNAME" userName="USERNAME" password="PASSWORD" />
    </smtp>
    </mailSettings>
    </system.net>

    Check out the msdn documentation if you need more infos

    hth, Thomas

  • Thomas Höhler 1237 posts 1709 karma points MVP
    Jan 06, 2010 @ 09:56
    Thomas Höhler
    0

    And if you are using own code you can set the credentials via

    System.Net.Mail.SmtpClient sc = new System.Net.Mail.SmtpClient();
    sc.Host = "HOSTNAME_OR_IP";
    sc.Credentials = new System.Net.NetworkCredential("USERNAME", "PASSWORD");

    hth, Thomas

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies