重置密码不起作用 symfony 3

我在我的 symfony 3 项目中使用 FOSUserBundle。一切都很好,但我有一个问题!!!:-(

当我尝试在“我忘记密码”上重置密码时,没有发送电子邮件......即使应用程序将用户重定向到重置/检查电子邮件视图。

实际上,我在带有 wamp 的本地服务器上对此进行了测试。

这是我的配置文件:

#app/paramaters.yml#

mailer_transport: gmail
mailer_host: smtp.gmail.com
mailer_user: [email protected]
mailer_password: ********

#app/config.yml#

# Swiftmailer Configuration

swiftmailer:
transport: '%mailer_transport%'
host: '%mailer_host%'
username: '%mailer_user%'
password: '%mailer_password%'
spool: { type: memory }

#FriendsOfSymfonyBundle Configuration
fos_user:
    db_driver: orm
    firewall_name: main
    user_class: MA\UserBundle\Entity\User
    from_email:
            address: [email protected]
            sender_name: Admin
    service:
            mailer: fos_user.mailer.twig_swift
    registration:
            confirmation:
                from_email:
                    address:        [email protected]
                    sender_name:    Admin
    resetting:
            email:
                from_email:
                    address:        [email protected]
                    sender_name:    Admin

有人可以帮助我吗??请!!

朱莉·斯姆兹

我已经解决了将 parameters.yml 上的邮件传输更改为“邮件”的问题

mailer_transport: mail

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章