Do you get any sort of log errors? and can you check if it is umbraco emails in general that fails?
Contour uses the umbraco.library.SendEmail method, so could you test that from usercontrol or xslt? and also try using the notification feature to see if that works as well.
In the published Shared Source for Contour, it is using (more or less) the same code as in the "Alternate template with inline code for sending email on page load" posted above.
First I've setup the email address that is used as the from address by updating the
/config/umbracoSettings.config file
<notifications> <!-- the email that should be used as from mail when umbraco sends a notification --> <email>[email protected]</email> </notifications>
Then made sure I have a valid smtp server setup in the web.config
For others who come across the "email not working", please make sure you have a valid email address added to your umbraco settings notification email. Some relay servers will be configured to do a revere lookup to make sure the sender is valid. So, [email protected], would prevent any notifications from being sent.
Just stumbled on this, I had missed to update that setting (/config/umbracosettings.config) on a site. Side note : it could really be useful to choose the sender email-adress for each single form (workflow-email).
I'm experiencing the exact same error as Ove Andersen where emails are not being sent from Contour, though they are being sent from non-contour forms on the site. I have made sure that the mail is set up in umbracoSettings.config, so that shouldn't be the issue.
Besides that I have tried to add another workflow that saves the form to the data folder as a file, but that doesn't work either. So I'm guessing that something is wrong with the workflows in general on this site - as Ove also had similar issues. But after a manual upgrade to Contour 1.1.2 as Tim suggested there is still no luck. I'm running umbraco v4.5.2. Does anybody have a clue as where to start looking for clues as to what is the culprit?
Ok -update for anyone else encountering this with newer versions of umbraco and contour_contrib.
I found that the plain stock email workflow did work after an smtp server restart. But the extended workflow continued to fail.
I solved this by recompiling the workflow from contour contrib against the new dlls from 4.9. Looks like something wasn't compatible - but i didn't even debug to find the specifics...just replaced the dlls and recompiled as part of my debugging environment setup - and found it worked, so i took it and ran lol.
Actually ended up pulling the workflow into my own custom email workflow anyway - but the email extended from contour contrib worked without modifications just with the new references.
Email not being sent
Sending emails no longer works for us. Tried both version 1.0.12 and version 1.1
The entries are saved in the Contour UI, but the emails are not send.
I have tested the email setup with telnet, and everything is as it should.
Did just notice the same thing. Can confirm.
Do you get any sort of log errors? and can you check if it is umbraco emails in general that fails?
Contour uses the umbraco.library.SendEmail method, so could you test that from usercontrol or xslt? and also try using the notification feature to see if that works as well.
I have 1.1.0 and it still works. Not tried 1.1.1 yet.
@ Per Ploug Hansen:
No, there are no errors in the Umbraco logs.
Tested with the following:
<%@ Master Language="C#" MasterPageFile="~/umbraco/masterpages/default.master" AutoEventWireup="true" %>
<asp:Content ContentPlaceHolderID="ContentPlaceHolderDefault" runat="server">
<html>
<head id="head" runat="server"></head>
<body>
<%
System.Net.Mail.MailMessage m = new System.Net.Mail.MailMessage();
m.From = new System.Net.Mail.MailAddress(umbraco.UmbracoSettings.NotificationEmailSender);
m.Subject = "Tester kontaktskjema";
m.IsBodyHtml = true;
m.To.Add(new System.Net.Mail.MailAddress("[email protected]"));
m.Body = "<p>Hvis du kan lese dette, virker kontaktskjemaet som det skal.</p>";
System.Net.Mail.SmtpClient s = new System.Net.Mail.SmtpClient();
s.Send(m);
%>
</body>
</html>
</asp:Content>
<%@ Master Language="C#" MasterPageFile="~/umbraco/masterpages/default.master" AutoEventWireup="true" %>
<asp:Content ContentPlaceHolderID="ContentPlaceHolderDefault" runat="server">
<html>
<head id="head" runat="server">
</head>
<body>
<umbraco:Macro Alias="SendMailTest" runat="server"></umbraco:Macro>
</body>
</html>
</asp:Content>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE xsl:stylesheet [ <!ENTITY nbsp " "> ]>
<xsl:stylesheet
version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:msxml="urn:schemas-microsoft-com:xslt"
xmlns:umbraco.library="urn:umbraco.library"
exclude-result-prefixes="msxml umbraco.library">
<xsl:output method="xml" omit-xml-declaration="yes"/>
<xsl:param name="currentPage"/>
<xsl:template match="/">
<xsl:value-of select="umbraco.library:SendMail('[email protected]', '[email protected]', 'Tester kontaktskjema', 'Hvis du kan lese dette virker sendmail fra Umbraco', 'false')"/>
</xsl:template>
</xsl:stylesheet>
In the published Shared Source for Contour, it is using (more or less) the same code as in the "Alternate template with inline code for sending email on page load" posted above.
Comment author was deleted
That's strange, there have been no changes to the email workflow, will test and report back with more details.
Comment author was deleted
Just tested it,
First I've setup the email address that is used as the from address by updating the
/config/umbracoSettings.config file
Then made sure I have a valid smtp server setup in the web.config
And sending the mail works after updating these settings.
Also if the workflow throws an error you should get a new record in the umbraco log (prefixed with umbracoForms)
@Ove, and do other workflow types execute correctly?
It looks like no other workflows are executed either.
Just tried "Save as file", and it didn't work. And there are noe errors in the log.
Comment author was deleted
Hi Ove,
And on what state did you place the workflow?
On submitted.
Here is screenshot:
Comment author was deleted
Hi Ove, as a test could you create a form based on the contact template and see if the workflows execute then?
Tried it just now.
Still no-go. And no errors in the log.
Comment author was deleted
Hi Ove, could you give some details on your setup, umbraco version, db engine, installed packages?
Thanks,
Tim
Umbraco Contour
FamFamFam Icon Package
ImageGen
Gecko Uploadify
Config Tree
Robots.txt Editor
TheFARM Media Link Checker
FALM Housekeeping
I could also try to reinstall Contour. Is there a way to export/import forms?
Comment author was deleted
Yeah, would it be possible to just upgrade to the latest version (1.1.2) at the moment.
Simply download the update zip here: http://our.umbraco.org/projects/umbraco-pro/contour (attached files), it's not a package but an archive
Then extract the archive and overwrite your existing Contour files (no changes to db, so it will still keep al your entries)
Once that is done make sure to clear your browser cache.
Cheers,
Tim
Now it works!
Thanks Tim!
For others who come across the "email not working", please make sure you have a valid email address added to your umbraco settings notification email. Some relay servers will be configured to do a revere lookup to make sure the sender is valid. So, [email protected], would prevent any notifications from being sent.
Cheers!
Just stumbled on this, I had missed to update that setting (/config/umbracosettings.config) on a site. Side note : it could really be useful to choose the sender email-adress for each single form (workflow-email).
Jonas, that will be nice. It will be great if Notification email address in the umbraco settings can be overriden in form settings.
Rajeev
Hi guys,
I'm experiencing the exact same error as Ove Andersen where emails are not being sent from Contour, though they are being sent from non-contour forms on the site. I have made sure that the mail is set up in umbracoSettings.config, so that shouldn't be the issue.
Besides that I have tried to add another workflow that saves the form to the data folder as a file, but that doesn't work either. So I'm guessing that something is wrong with the workflows in general on this site - as Ove also had similar issues. But after a manual upgrade to Contour 1.1.2 as Tim suggested there is still no luck. I'm running umbraco v4.5.2. Does anybody have a clue as where to start looking for clues as to what is the culprit?
Thanks a lot in advance :)
Cheers,
Kim
Ok -update for anyone else encountering this with newer versions of umbraco and contour_contrib.
I found that the plain stock email workflow did work after an smtp server restart. But the extended workflow continued to fail.
I solved this by recompiling the workflow from contour contrib against the new dlls from 4.9. Looks like something wasn't compatible - but i didn't even debug to find the specifics...just replaced the dlls and recompiled as part of my debugging environment setup - and found it worked, so i took it and ran lol.
Actually ended up pulling the workflow into my own custom email workflow anyway - but the email extended from contour contrib worked without modifications just with the new references.
I would be nice to get som kind of logging if sending mail fails server-side.
is working on a reply...