[英]confirmation email not sent after registration in FOSUserBundle
My project is based on symfony 2.3.19 + lastest version version FOSUserBundle. 我的项目基于symfony 2.3.19 +最新版本FOSUserBundle。
Actually, FOSuserBundle is working perfectly. 实际上,FOSuserBundle运行良好。 In fact, all functionnalities are working correctly.
实际上,所有功能均正常运行。 Now, my goal is to activate the email confirmation when a user registers.
现在,我的目标是在用户注册时激活电子邮件确认。 For that, I configured my project in this way:
为此,我以这种方式配置了项目:
# app/config.yml
# Swiftmailer Configuration
swiftmailer:
transport: %mailer_transport%
host: %mailer_host%
username: %mailer_user%
password: %mailer_password%
spool: { type: memory }
fos_user:
db_driver: orm
firewall_name: main
user_class: Minn\UserBundle\Entity\User
registration:
form:
type: minn_user_registration
confirmation:
enabled: true
template: MinnUserBundle:Registration:email.txt.twig
from_email:
address: XXXXXXX@gmail.com
sender_name: XXXXXXX
service:
mailer: fos_user.mailer.twig_swift
Checking this configuration, I get forwarded to /register/check-email
with the message I wrote in MinnUserBundle:Registration:email.txt.twig
. 检查此配置后,我将在
MinnUserBundle:Registration:email.txt.twig
编写的消息转发到/register/check-email
。 But no email was sent & no error was returned by symfony. 但是没有发送电子邮件,symfony也没有返回错误。
It there any idea? 有什么想法吗?
Thanks, 谢谢,
只是SMTP凭证错误。...再次感谢...。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.