Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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("firstname.lastname@example.org")); 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@example.com', 'firstname.lastname@example.org', 'Tester kontaktskjema', 'Hvis du kan lese dette virker sendmail fra Umbraco', 'false')"/> </xsl:template></xsl:stylesheet>
Sorted nodes, got notification.
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.
That's strange, there have been no changes to the email workflow, will test and report back with more details.
Just tested it,
First I've setup the email address that is used as the from address by updating the
<notifications> <!-- the email that should be used as from mail when umbraco sends a notification --> <email>email@example.com</email> </notifications>
Then made sure I have a valid smtp server setup in the web.config
<system.net> <mailSettings> <smtp> <network host="relay.skynet.be" /> </smtp> </mailSettings> </system.net>
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.
And on what state did you place the workflow?
Here is screenshot:
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.
Hi Ove, could you give some details on your setup, umbraco version, db engine, installed packages?
I could also try to reinstall Contour. Is there a way to export/import forms?
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.
Now it works!
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, firstname.lastname@example.org, 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).
Jonas, that will be nice. It will be great if Notification email address in the umbraco settings can be overriden in form settings.
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 :)
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...
Write your reply to:
Image will be uploaded when post is submitted