I use FOSUserBundle to do registration / registration in my application.
I want the new user to confirm their email by sending him an email with confirmation.
After reading the official documentation and various tutorials, I have the same error:
The email verification page appears after user registration, but I do not receive an email.
These are my settings.
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: VK\UserBundle\Entity\User
registration:
confirmation:
enabled: true
from_email:
address: my_username@gmail.com
sender_name: Demo registration
service:
mailer: fos_user.mailer.twig_swift
And these are my parameters
config/parameters.yml
parameters:
mailer_transport: smtp
mailer_host: smtp.gmail.com
mailer_encryption: ssl
mailer_user: my_username@gmail.com
mailer_password: my_password
Please help me solve this problem? thank you's
source
share