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>
<notifications> <!-- the email that should be used as from mail when umbraco sends a notification --> <email>[email protected]</email> </notifications>
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?
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>
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>
is working on a reply...