Copied to clipboard

Flag this post as spam?

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


  • Ove Andersen 435 posts 1541 karma points c-trib
    Aug 18, 2010 @ 15:15
    Ove Andersen
    0

    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.

  • Fredrik Esseen 610 posts 906 karma points
    Aug 18, 2010 @ 15:21
    Fredrik Esseen
    0

    Did just notice the same thing. Can confirm.

  • Per Ploug Hansen 208 posts 129 karma points
    Aug 18, 2010 @ 15:53
    Per Ploug Hansen
    1

    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. 

     

  • Sebastiaan Janssen 5060 posts 15522 karma points MVP admin hq
    Aug 18, 2010 @ 16:00
    Sebastiaan Janssen
    0

    I have 1.1.0 and it still works. Not tried 1.1.1 yet.

  • Ove Andersen 435 posts 1541 karma points c-trib
    Aug 18, 2010 @ 16:20
    Ove Andersen
    0

    @ Per Ploug Hansen:

    No, there are no errors in the Umbraco logs.

    Tested with the following:

    1. (Works) Alternate template with inline code for sending email on page load:
      <%@ 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 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 new System.Net.Mail.SmtpClient();
              s.Send(m);
            %>
          </body>
        </html>
      </asp:Content>
    2. (Doesn't Work) Alternate template using xslt and umbraco.library:SendMail:

      <%@ 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 "&#x00A0;"> ]>
      <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>
    3. (Works) Subscribing to Notifications for Sorting.
      Sorted nodes, got notification.
  • Ove Andersen 435 posts 1541 karma points c-trib
    Aug 18, 2010 @ 16:29
    Ove Andersen
    0

    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

    Aug 19, 2010 @ 09:27

    That's strange, there have been no changes to the email workflow, will test and report back with more details.

  • Comment author was deleted

    Aug 19, 2010 @ 11:19

    Just tested it,

    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

    <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?

     

     

     

     

  • Ove Andersen 435 posts 1541 karma points c-trib
    Aug 19, 2010 @ 12:26
    Ove Andersen
    0

    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

    Aug 19, 2010 @ 12:49

    Hi Ove,

    And on what state did you place the workflow?

  • Ove Andersen 435 posts 1541 karma points c-trib
    Aug 19, 2010 @ 12:59
    Ove Andersen
    0

    On submitted.

    Here is screenshot:

  • Comment author was deleted

    Aug 19, 2010 @ 13:07

    Hi Ove, as a test could you create a form based on the contact template and see if the workflows execute then?

  • Ove Andersen 435 posts 1541 karma points c-trib
    Aug 19, 2010 @ 13:57
    Ove Andersen
    0

    Tried it just now.

    Still no-go. And no errors in the log.

  • Comment author was deleted

    Aug 19, 2010 @ 14:50

    Hi Ove, could you give some details on your setup, umbraco version, db engine, installed packages?

    Thanks,
    Tim

  • Ove Andersen 435 posts 1541 karma points c-trib
    Aug 19, 2010 @ 21:49
    Ove Andersen
    0
    • Umbraco v4.5.1 running on Windows Server 2008 R2
    • SQL Server Express 2008 R2
    • Installed packages:
      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

    Aug 23, 2010 @ 12:03

    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

  • Ove Andersen 435 posts 1541 karma points c-trib
    Aug 23, 2010 @ 13:37
    Ove Andersen
    0

    Now it works!

    Thanks Tim!

  • Nik Wahlberg 639 posts 1237 karma points MVP
    Aug 30, 2010 @ 19:23
    Nik Wahlberg
    1

    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! 

  • Jonas Eriksson 930 posts 1825 karma points
    Sep 21, 2011 @ 10:33
    Jonas Eriksson
    1

    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).

  • Rajeev 126 posts 154 karma points
    Sep 21, 2011 @ 13:48
    Rajeev
    0

    Jonas, that will be nice. It will be great if Notification email address in the umbraco settings can be overriden in form settings.

    Rajeev

  • Kim Løwert 130 posts 116 karma points
    May 12, 2012 @ 00:41
    Kim Løwert
    0

    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

  • Steve Bridges 51 posts 72 karma points
    Sep 10, 2012 @ 19:45
    Steve Bridges
    0
    I've tried all suggestions in this thread, but still am having issues.

    • Umbraco v4.9 running on Windows Server 2008 R2
    • SQL Server 2008 
    • Contour version 1.1.13.2
    I am able to send emails manually (using , so I know my SMTP is set up correctly)
       
    System.Net.Mail.MailMessage m = new System.Net.Mail.MailMessage();
            m.From = new System.Net.Mail.MailAddress(umbraco.UmbracoSettings.NotificationEmailSender);
            m.Subject = "Test";
            m.IsBodyHtml = true;
          
            m.To.Add(new System.Net.Mail.MailAddress("my.email@<domain>.com"));
            m.Body = "<p>test message.</p>";
            
            System.Net.Mail.SmtpClient s = new System.Net.Mail.SmtpClient();
            s.Send(m);
    But contour fails with a vague "Object reference not set to an instance of an object." error in the log.
    How do i troubleshoot further?  I've tried the send email extended workflow - and the plain old Send Email.  Neither will send.

  • Steve Bridges 51 posts 72 karma points
    Sep 11, 2012 @ 20:59
    Steve Bridges
    0

    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.

     

  • Anders Brohäll 295 posts 561 karma points c-trib
    Nov 04, 2013 @ 15:59
    Anders Brohäll
    0

    I would be nice to get som kind of logging if sending mail fails server-side.

Please Sign in or register to post replies

Write your reply to:

Draft