SimpleForms 不发送任何电子邮件。我关闭了测试模式,并没有更改config.yml文件中的邮件设置:
# by default, mail is sent using PHP's built-in mail function. In general, it's advised to use SMTP for sending mail
# instead. Uncomment the following lines to use an SMTP server with authentication.
# Please check http://silex.sensiolabs.org/doc/providers/swiftmailer.html for a full range of options
#mailoptions:
# host: localhost
# port: 25
# username: username
# password: password
# encryption: null
# auth_mode: null
所以bolt应该使用PHP的邮件功能。在同一台服务器上,我有几个 Drupal 安装正确发送电子邮件。错误日志不包含与邮件相关的任何内容。
我究竟做错了什么?有没有来自螺栓的日志?
编辑:我的 simpleforms.bolt.yml:
[...]
recaptcha_enabled: false
recaptcha_public_key: ''
recaptcha_private_key: ''
recaptcha_error_message: "The CAPTCHA wasn't entered correctly. Please try again."
recaptcha_theme: clean
csrf: true
from_email: [...]
from_name: Anonym
testmode : false
testmode_recipient: [...]
contact:
recipient_email: "[...]"
recipient_name: "[...]"
mail_subject: "[...]"
button_text: "Senden"
fields:
name:
type: text
required: true
placeholder: Ihr Name
label: Name
email:
type: email
label: E-Mail-Adresse
required: true
placeholder: Ihre E-Mail-Adresse
subject:
type: text
required: true
placeholder: Betreff Ihrer Nachricht
label: Betreff
message:
type: textarea
required: true
placeholder: Ihre Nachricht
label: Nachricht