Copied to clipboard

Flag this post as spam?

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


  • Tom Maton 387 posts 660 karma points
    Jan 20, 2012 @ 21:00
    Tom Maton
    0

    Unable to send form using Gmail

    I've tried to use the form using the smtp settings from gmail.

    I've checked the error logs and if Umbraco has logged anything and nothing. I've read through the docs and tried the parameter name capalised and camel cased and nothing.

    I'm using Umbraco 4.7.1

    I've been looking and debuging for a couple days and cant for thelife of me work it out.

    Any help greatly appreciated.

    Thanks,
    Tom

  • Jan Skovgaard 11280 posts 23678 karma points MVP 10x admin c-trib
    Jan 20, 2012 @ 22:29
    Jan Skovgaard
    0

    Hi Tom

    What does your SMTP settings look like in the web.config? Could it be a port issue?

    /Jan

  • Justin Spradlin 139 posts 347 karma points
    Jan 20, 2012 @ 22:40
    Justin Spradlin
    0

    I know that to send from a gmail account I have had to set EnableSSL to true form my connections to work. Have you tried that?

  • Tom Maton 387 posts 660 karma points
    Jan 21, 2012 @ 02:08
    Tom Maton
    0

    Hi Guys,

    This is what my config looks like

     

    <smtp>
    <network host="smtp.gmail.com"
    port="587"
    userName="username"
    password="password"
    defaultCredentials="false" />
    </smtp>

    Justin do I need to set the enable on Gmail as I've just set it on the parameters

    Thanks
    Tom 

  • Justin Spradlin 139 posts 347 karma points
    Jan 21, 2012 @ 04:04
    Justin Spradlin
    0

    The config below is working on one of my live sites. I believe with the contact form if you set the EnableSsl = true on the macro (in your master page) it will override what you have in the web.config. But either way, this is working for me:

    <system.net>

    <mailSettings>

      <smtp from="[email protected]" deliveryMethod="network">

    <network host="smtp.gmail.com" port="587" userName="[email protected]" password="********" enableSsl="true"/>

      </smtp>

    </mailSettings>

    </system.net>

     

  • Tom Maton 387 posts 660 karma points
    Jan 24, 2012 @ 09:45
    Tom Maton
    0

    Thanks Justin,

    But I've tried that and nothing,

    I've also tried it as a macro with macro parameters and reference to the razor file and nothing.

    Thanks,
    Tom

  • MartinB 411 posts 512 karma points
    Jan 24, 2012 @ 15:26
    MartinB
    0

    Hi

    Try this:

     <mailSettings>
    <smtp>
    <network host="smtp.gmail.com" port="587" userName="[email protected]" password="password" defaultCredentials="false" />
    </smtp>
    </mailSettings>

    And you might need to add the following to your form code (doc2form.ascx.cs in this example)

    smtp.EnableSsl = true;

     

     

  • Yik Tan 6 posts 26 karma points
    Oct 14, 2012 @ 16:50
    Yik Tan
    0

    I cant get my one working too. Please Help

    Here is my setting in web config

     

     <system.net>

        <mailSettings>

          <smtp>

            <network

            host="smtp.gmail.com"

            port="587"

            userName="xxxxx"

            password="xxxxxxx"

            defaultCredentials="false"

            enableSsl="true"

    />

          </smtp>

        </mailSettings>

      </system.net>

     

    Here is the code in my template

     <umbraco:Macro MailFrom="[email protected]" MailFromName="Sin Soo Hup" EnableSsl="true" Alias="CultivRazorContactForm" runat="server"></umbraco:Macro>

     

    When i click send, the form went missing. Nothing, Not status, no error msg

     

  • bitabite 1 post 21 karma points
    Oct 18, 2012 @ 16:33
    bitabite
    0

    Hello Yik Tan,
    you might wan to try to add the Razor directly like this:
    <umbraco:Macro FileLocation="~/macroScripts/CultivContactForm.cshtml" MailFrom="[email protected]"  runat="server" /> 

    The way you include your Macro via Alias is cool, but I suspect that you need to enable some paramaters on your macro (find you macro > parameters tab > add the corect parameter(s)).

    One of the two approaches should work for you, but the first is easiest... 

Please Sign in or register to post replies

Write your reply to:

Draft