Boltforms不提交联系表

时间:2019-02-14 18:00:00

标签: php symfony twig bolt-cms

我尝试使用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

0 个答案:

没有答案