Copied to clipboard

Flag this post as spam?

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


  • Petras Surna 90 posts 144 karma points
    Feb 24, 2011 @ 01:31
    Petras Surna
    0

    Contour not sending emails

    We have set up Contour to send an email when a form is submitted via a Workflow but we are not recieivng it.

    We have specified the web.config settings to be

    <system.net>
        <mailSettings>
          <smtp>
            <network host="mail.si-sv3956.com" />
          </smtp>
        </mailSettings>
      </system.net>

     

    We have tested email works on the server with the following code that does send an email:

    <script runat="server" language="CS">
      protected void Page_Load(object sender, EventArgs e)
      {
         Response.Write("Hello World");
        Email("[email protected]", "[email protected]", "email test", "email test body");
      }

      public void Email(string to, string from, string subject, string body)
      {
        System.Net.Mail.MailMessage message = new System.Net.Mail.MailMessage(from, to, subject, body);
        System.Net.Mail.SmtpClient client = new System.Net.Mail.SmtpClient();
        client.Host = "mail.si-sv3956.com";
        client.Send(message);
      }

    Is there something else that needs to be configured for Contour to send emails?

  • Petras Surna 90 posts 144 karma points
    Feb 24, 2011 @ 01:46
    Petras Surna
    0

    Also, we have added this to umbracoSettings.config

    <notifications>
          <!-- the email that should be used as from mail when umbraco sends a notification -->
          <email>[email protected]</email>
    </notifications>

  • Petras Surna 90 posts 144 karma points
    Feb 24, 2011 @ 02:06
    Petras Surna
    0

    OK, the answer is that umbracoSettings.config was wrong

    [email protected] should be:

    <notifications>
          <!-- the email that should be used as from mail when umbraco sends a notification -->
          <email>[email protected]</email>
    </notifications>

Please Sign in or register to post replies

Write your reply to:

Draft