Sitecore 8 WFFM - 发送保存操作错误的电子邮件

时间:2016-08-29 08:02:15

标签: sitecore sitecore8 sitecore-mvc

我使用经验编辑器中的组件添加了一个Web表单(Get Our Newsletter),使用“发送电子邮件”订阅按钮Save Actions am。 屏幕1: enter image description here

enter image description here

屏幕2:

enter image description here

在Web配置文件

awk

并且还添加了配置文件的代码(或没有):

<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="info@xyz.com" />
  <!--  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" />

为营销人员设置Web表单: enter image description here 我仍然得到以下错误,请任何人帮助我 enter image description here

2 个答案:

答案 0 :(得分:2)

问题很可能是您没有从默认的“发送电子邮件发送操作”中删除默认主机设置,该操作会设置主机和开箱即用的电子邮件。

浏览至/sitecore/system/Modules/Web Forms for Marketers/Settings/Actions/Save Actions/Send Email Message,然后从Parameters字段中删除设置。

WFFM Send Email Action Parameters

您必须从表单中删除发送操作,然后重新添加以使更改生效但不幸(或编辑表单上的保存操作的原始值以删除它们)。

如果您收到其他错误,请检查Sitecore日志文件,以获取有关错误发生原因和堆栈跟踪的详细信息。

答案 1 :(得分:0)

您需要将GMAIL登录凭据添加到WFFM设置(以及端口和enableSSL)。

很久以前我做了一篇关于它的博文:) http://intothecore.cassidy.dk/2012/05/email-confusion-configuring-smtp.html