Copied to clipboard

Flag this post as spam?

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


  • David Hammer 41 posts 67 karma points
    Apr 29, 2014 @ 11:02
    David Hammer
    0

    Cannot send mail with Contour

    Hey guys,

    I have installed the Contour Package, and made a form, with necessary workflow, with a receiving email and such.

    This is my web.config's mail settings:

    <mailSettings>
      <smtp deliveryMethod="Network" from="[email protected]">
        <network host="smtp.gmail.com"
                password="*****" 
                userName="[email protected]"
                port="465"
                enableSsl="true" />
      </smtp>
    </mailSettings>
    

    This is my umbracoSettings:

    <notifications>
      <!-- the email that should be used as from mail when umbraco sends a notification -->
      <email>[email protected]</email>
    </notifications>
    

    Now i have a few questions:

    1. I have Contour in trial mode, and I know it does not save input from form fields, but does it also not send the email until you upgrade?

    2. I have "web.config" in these 3 directories on my sftp: "/root", "/Config" and "App_Data", why are there 3? and which ones should I change in regards to mailsettings?

    Right now I have changed all 3 of them to the mailSettings written above.

    Also - I cant seem to get notifications via umbraco - this might be part of the problem

    I hope you guys will help me out! Thanks!

  • Dennis Aaen 4499 posts 18254 karma points admin hq c-trib
    Apr 29, 2014 @ 11:15
    Dennis Aaen
    0

    Hi David,

    Have you tried to change the port in your setup to port:587 in the web config?. That´s what I can read from some other post´s about this subject.

    <mailSettings>
        <smtp>
            <network
                host="smtp.gmail.com"
                port="587"
                userName="yourGmailAccount"
                password="yourGmailPassword"
                enableSsl="true"/>
        </smtp>
    </mailSettings>

    Hope this helps,

    /Dennis

  • David Hammer 41 posts 67 karma points
    Apr 29, 2014 @ 11:32
    David Hammer
    0

    Hi Dennis,

    Thanks for the quick response - I have tried the following combinations:

    port 587 with enableSsl true

    port 587 without enableSsl

    port 465 with enableSsl true

    port 465 without enableSsl

    port 25 without enableSsl

    In all three of those web config files.

    Which is why I'm starting to think there is something really wrong x(

    / David

  • Dan 1285 posts 3917 karma points c-trib
    Apr 29, 2014 @ 11:46
    Dan
    0

    Hi David,

    This won't solve your immediate issue, but to help pinpoint where the issue is I'd suggest using a different SMTP provider and see if that works. I've had problems sending transactional mail via GMail before so now I use either SendGrid or Mandrill and would highly recommend both. They're quick/simple to set up and you get stats at 'their side' to track whether emails are reaching them and what happens when they're transacted. (This has even been handy for me when a customer says "I've not received any email notifications" - you can verify whether they have or not.)

    Also, if you're running this locally I'd highly recommend Papercut, which is a lightweight local SMTP server and mailbox for testing local transactional mail.

    As I said, this won't solve your GMail issue, but hopefully you can get one of these services set up and determine whether it's your installation that's the problem or GMail.

    Hope this helps :)

Please Sign in or register to post replies

Write your reply to:

Draft