i use fosuserbundle perform login/registration on application.
i want new user confirm email sending him confirmation email.
after reading official documentation , different tutorials have same error :
the check email page appear after register user don't receive email.
this configurations
#config/config.yml 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 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 can 1 me solve issue ? thank's
i think problem swiftmailer
configuration. edit parameters to
parameters: mailer_transport: gmail mailer_host: ~ mailer_user: your_gmail_username mailer_password: your_gmail_password
or add encryption
, auth_mode
attribute actual configuration
swiftmailer: transport: "%mailer_transport%" encryption:"%mailer_encryption%" host: "%mailer_host%" username: "%mailer_user%" password: "%mailer_password%" auth_mode: "%mailer_auth_mode%" spool: { type: memory }
parameters: mailer_auth_mode: login mailer_encryption: ssl mailer_host: smtp.gmail.com mailer_transport: smtp mailer_user: my_username@gmail.com mailer_password: my_password
documentation can found here.
Comments
Post a Comment