2
방금 FOSUserbundle을 설치 했으므로 전자 메일 확인을 활성화하고 싶습니다. 사용자가 등록 할 때 활성화 링크가있는 이메일을 받아야한다는 의미입니다. 여기 확인 이메일이 전송되지 않았습니다. FOSUserBundle Symfony
는 config.yml 파일입니다fos_user:
db_driver: orm
firewall_name: main
user_class: Project\UserBundle\Entity\User
service:
mailer: fos_user.mailer.twig_swift
group:
group_class: Project\UserBundle\Entity\Group
profile:
form:
type: project_user_profile
registration:
form:
type: project_user_registration
confirmation:
enabled: true
#template: FOSUserBundle:Registration:email.txt.twig
from_email:
address: [email protected]
sender_name: Simlinx User Registration
그리고
# Swiftmailer Configuration
swiftmailer:
transport: %mailer_transport%
encryption: %mailer_encryption%
host: %mailer_host%
username: %mailer_user%
password: %mailer_password%
spool: { type: memory }
그리고 parameters.yml :
mailer_transport: gmail
mailer_encryption: ssl
mailer_host: ~
mailer_user: zairi.ibrahim
mailer_password: xxxxxxxxxxxx
그것은 처음에 작동하지만, 지금은 않습니다 더 이상 일하지 않아 !!
Thnks
당신은 솔루션 내 친구를 찾을? –