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.
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:
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...
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
Hi Tom
What does your SMTP settings look like in the web.config? Could it be a port issue?
/Jan
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?
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
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>
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
Hi
Try this:
And you might need to add the following to your form code (doc2form.ascx.cs in this example)
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
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...
is working on a reply...