Reputation: 249
I added one web form(Get Our Newsletter ) using component from experience editor,Subscribe button Save Actions am using the "Send Email Message". screen 1:
Screen 2:
In Web config File
<setting name="MailServer" value="smtp.gmail.com" />
<!-- MAIL SERVER USER
If the SMTP server requires login, enter the user name in this setting
-->
<setting name="MailServerUserName" value="[email protected]" />
<!-- MAIL SERVER PASSWORD
If the SMTP server requires login, enter the password in this setting
-->
<setting name="MailServerPassword" value="xxxxx" />
<!-- MAIL SERVER PORT
If the SMTP server requires a custom port number, enter the value in this setting.
The default value is: 25
-->
<setting name="MailServerPort" value="587" />
and also added below code (or without ) of config file:
<system.net>
<mailSettings>
<smtp deliveryMethod="Network">
<network enableSsl="true" />
</smtp>
</mailSettings>
Setup in Web Forms for Marketers: Still am getting following error, please any one help me for this
Upvotes: 0
Views: 773
Reputation: 16990
The issue is most likely that you did not remove the default host settings from the default Send Email Send Action, which is sets the host and from email out of the box.
Browse to /sitecore/system/Modules/Web Forms for Marketers/Settings/Actions/Save Actions/Send Email Message
and then delete the settings from the Parameters
field.
You will have to remove the send action from your form and then re-add for the changes to take effect though unfortunately (or edit the Raw Value of the Save Actions on the forms to remove them).
If you get other errors then check your Sitecore log files for more detailed information on why the error occurred and a stack trace.
Upvotes: 2
Reputation: 366
You need to add GMAIL login credentials to the WFFM setup (and also port and enableSSL).
I did a blogpost about it a long time ago :) http://intothecore.cassidy.dk/2012/05/email-confusion-configuring-smtp.html
Upvotes: 0