请我想知道如何在Symfony2中配置Swiftmailer的SMTP。Swiftmailer的SMTP配置Symfony2,Servage
我使用FOSUserBundle,并且在注册后启用了通过电子邮件激活的功能,但是在注册后,我收到消息说明激活电子邮件已经发送,但没有收到任何邮件。
我使用Servage.net托管,我已经试过这种配置:
app/config/config.yml
# Swiftmailer Configuration
swiftmailer:
transport: smtp
host: smtp1.servage.net
auth_mode: login
username: [email protected]
password: mypassword
port : 25
感谢。