我尝试使用config.yml
中的默认表单提交Bolt联系人表单,但是尽管表单成功,但仍然无法接收邮件。我正在使用服务器的邮件地址进行发送。
这是我在config.yml
中的邮件选项
mailoptions:
transport: smtp
spool: false
host: {website}.com
port: 465
username: contact@{website}.com
password: password
encryption: ssl
auth_mode: login
senderMail: contact@{website}.com
senderName: {owner}
我使用boltforms的联系表是
contact:
notification:
enabled: true
subject: RE School Assignment
from_name: {name}
from_email: contact@{email}.com
to_name: {name}
to_email: {email}
fields:
name:
type: text
options:
constraints: [ NotBlank ]
email:
type: email
options:
constraints: [ NotBlank, Email ]
comment:
type: text
options:
label: Leave an anonymous comment
submit:
type: submit