Copied to clipboard

Flag this post as spam?

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


  • CJ 2 posts 72 karma points
    Nov 11, 2016 @ 18:12
    CJ
    0

    Not receiving e-mail

    Hi all,

    I'm just getting started with Umbraco and have a couple of very basic questions. I'm troubleshooting an e-mail issue (not receiving e-mail through the contact form) for a friend's site and his developer just disappeared on him. I've never used Umbraco. I've looked around the backend and installed WebMatrix. I've searched the forums and see references to similar e-mail issues, but all of the solutions reference things I don't even see. For instance, this post gives instructions on reviewing the workflow, but I don't even see how to get to a workflow. Where is this? Can someone help point me in the right direction? I feel completely lost...

  • Marc Goodson 2157 posts 14434 karma points MVP 9x c-trib
    Nov 13, 2016 @ 11:34
    Marc Goodson
    1

    Hi CJ

    For the Umbraco site to be able to send email, one thing it needs to have setup (and therefore could be your problem here!) is a valid SMTP server configuration... So any requests to send mail are passed onto the relevant SMTP server to actually do the complicated bit about sending. The SMTP server could be on the server the site is hosted on, a company's SMTP server or an external SMTP service...

    The configuration is in the web.config file in the root of the Umbraco application: eg

    <mailSettings>
      <smtp from="[email protected]">
        <network host="127.0.0.1" userName="username" password="password" />
      </smtp>
    </mailSettings> 
    

    so I would check these settings exists, and are pointing at a real server/service, and the server where the Umbraco site is hosted is allowed to connect to the configured server/service.

    Sometimes I'll set the SMTP to use a local file:

    <mailSettings>
          <smtp deliveryMethod="SpecifiedPickupDirectory" from="">
            <network host="localhost" />
            <specifiedPickupDirectory pickupDirectoryLocation="App_Data/mail" />
          </smtp>
        </mailSettings>
    

    just to test if the actual email is being created correctly, if so a message will be created in the /app_data/mail folder (nb it won't be sent!!)

    If your form is created with the Umbraco Forms / Contour plugin - then when the form is filled in and submitted on your site, the plugin looks for any 'workflows' associated with the form, and run these with the completed details - one of the built in workflows is to send an email - so another consideration is that you might have the form setup perfectly correctly but no associated workflow.

    enter image description here

    If you are not using Umbraco Forms / Contour, then it's likely your form is created using a custom 'SurfaceController' if you look at the view that contains the form, there will be a statement similar to

    @using BeginUmbracoForm("Submit","ContactUs") {
    

    this will tell you the form is handled by a ContactUsController's Submit action, and that is the place to look to set a breakpoint in visual studio and step through to find the error when the mail is finally sent.

    regards

    Marc

  • CJ 2 posts 72 karma points
    Nov 14, 2016 @ 20:13
    CJ
    0

    Thank you very much for the detailed response. I'll give this a shot. Just waiting to get the hosting credentials. Trying to put all the pieces together since I'm coming in blind. Wish me luck! Thanks again.

  • Marc Goodson 2157 posts 14434 karma points MVP 9x c-trib
    Nov 14, 2016 @ 22:09
    Marc Goodson
    0

    good luck!

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies