0

我使用 simpleforms 作为订阅类的订阅表单。该表单使用 use_as 并将电子邮件发送给发件人作为确认。

我已经编辑了电子邮件树枝模板,并添加了有关订阅者下一步应该做什么的更多信息。

我的问题是是否可以在说明文本中设置特定的字段值。到目前为止,我还不能正确地做到这一点。我只想在此说明文本中显示“名称:”字段,以便每个收到此电子邮件的发件人都会收到他自己的名字。

电子邮件模板中使用的 for 循环是

{% for value in form %} {{ value }} {% endfor %}

我正在寻找要设置的特定字段,而不是表单的所有值。

4

1 回答 1

-1

You can directly access the fields in your emailtemplate, you don't need to use a loop for it.

So if you have a field called 'name' in your config file you can use {{ form.name }} in the email template to display the value that the visitor has entered directly.

于 2015-06-17T07:54:50.760 回答