Copied to clipboard

Flag this post as spam?

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


  • Sebastiaan Janssen 5045 posts 15476 karma points MVP admin hq
    Jul 01, 2009 @ 16:58
    Sebastiaan Janssen
    10

    How to relay mail through Gmail

    If you don't have an smtp server available on your hosting machine, you can use your Gmail account to relay your mail.
    The disadvantage of doing this is that the "from" address will always be your Gmail account's address.

    When you create content item, you have an optional checkbox "Mailserver SSL on". We need SSL for Gmail, so set this checkbox to true.

    In your web.config, use these settings:

      <system.net>
    <mailSettings>
    <smtp>
    <network
    host="smtp.gmail.com"
    port="587"
    userName="yourGmailAccount"
    password="yourGmailPassword"
    defaultCredentials="false"
    />
    </smtp>
    </mailSettings>
    </system.net>

     

  • Jan Skovgaard 11280 posts 23678 karma points MVP 10x admin c-trib
    Jul 01, 2009 @ 22:51
    Jan Skovgaard
    0

    This is a great tip and I really like it :) But I am wondering if it should'nt be placed in a wiki rather in a post on the forum?

  • Jesper Ordrup 1019 posts 1528 karma points MVP
    Jul 02, 2009 @ 00:07
    Jesper Ordrup
    0

    Id say both. This probably how wiki material starts. Now we just need a way of handling this. Would be cool if we could mark posts as potiential wiki material and process them later.

    /Jesper

  • Jan Skovgaard 11280 posts 23678 karma points MVP 10x admin c-trib
    Jul 02, 2009 @ 00:11
    Jan Skovgaard
    0

    Yes that would be a nice feature I think. But maybe I was also to fast. Have first realised that this post is actually related to the page with the package :)

  • Laurence Gillian 600 posts 1219 karma points
    Sep 10, 2010 @ 13:04
    Laurence Gillian
    0

    Just wanted to say, thank you! x

  • MartinB 411 posts 512 karma points
    Jan 30, 2011 @ 01:35
    MartinB
    0

    Wrong thread, sorry :)

  • sharad kumar rathore 23 posts 42 karma points
    Jul 18, 2013 @ 16:36
    sharad kumar rathore
    0

    hi,

    I tried putting the smtp configuration in both .config file and from the code behind (SMTPClient object) but unfortunately, none of them are working. Can you please suggest me what to do to resolve the problem? Did I miss any thing here? Waiting for your kind and earliest response on this. Thanks in advance for your time.

    Regards,

    sharad kumar rathore

  • Amir Khan 1282 posts 2739 karma points
    Jul 18, 2013 @ 22:09
    Amir Khan
    0

    What version of Umbraco are you using? This works without modification when added in web.config on some versions (i want to say 4.5+) but required a fix on previous versions.

    Also, make sure you're using FQDN for the username and check if they are in your gmail outbox. I always use gmail for SMTP, sometimes you'll just overlook something and it won't work as expected.

    -Amir

Please Sign in or register to post replies

Write your reply to:

Draft