After the registration of a new account, I have the following message:
Un e-mail a été envoyé à l'adresse name@mail.com. Il contient un lien d'activation sur lequel il vous faudra cliquer afin d'activer votre compte.
It means that a mail was send to name@mail.com But when I check, there is no mail.
parameters.yml
parameters:
database_host: 127.0.0.1
database_port: null
database_name: dbsym
database_user: root
database_password: ######
mailer_transport: smtp
mailer_host: mail.smtp2go.com
mailer_user: ######
mailer_password: #######
secret: #########
config.yml
fos_user:
db_driver: orm # other valid values are 'mongodb' and 'couchdb'
firewall_name: main
user_class: AppBundle\Entity\User
from_email:
address: "%mailer_user%"
sender_name: "%mailer_user%"
registration:
confirmation:
enabled: true
template: '@FOSUser\Registration\email.txt.twig'
form:
type: AppBundle\Form\RegistrationType
profile:
form:
type: AppBundle\Form\ProfileType
Did I forget something?
All I have done is type the command in console swiftmailer: email: send in the console to test mail sending and its working. Then I register a new user, I check and see it the mail.
console swiftmailer:email:send ...