Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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.
What does your SMTP settings look like in the web.config? Could it be a port issue?
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?
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
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:
<smtp from="[email protected]" deliveryMethod="network">
<network host="smtp.gmail.com" port="587" userName="[email protected]" password="********" enableSsl="true"/>
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.
<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;
I cant get my one working too. Please Help
Here is my setting in web config
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...
Write your reply to:
Image will be uploaded when post is submitted