昨晚我重新安装了Windows 7.今天早上我将我的网站副本复制到htdocs文件夹(xampp服务器)。我已经通知我在用户注册后不再收到确认邮件。我确实验证了所有内容,但似乎一切正常。
我认为swiftmailer存在问题。
应用程序/配置
enter code here fos_user:
db_driver: orm
firewall_name: main
user_class: FLY\UserBundle\Entity\User
use_listener: true
#use_flash_notifications: true
use_username_form_type: true
model_manager_name: null # change it to the name of your entity/document manager if you don't want to use the default one.
from_email:
address: xxxxxxxx@hotmail.fr
sender_name: webmaster
profile:
form:
type: fos_user_profile
name: fos_user_profile_form
validation_groups: [Profile, Default]
change_password:
form:
type: fos_user_change_password
name: fos_user_change_password_form
validation_groups: [ChangePassword, Default]
registration:
confirmation:
from_email: # Use this node only if you don't want the global email address for the confirmation email
address: xxxxxxxx@hotmail.fr
sender_name: Webmaster
enabled: true # change to true for required email confirmation
template: FOSUserBundle:Registration:email.txt.twig
form:
type: fos_user_registration
name: fos_user_registration_form
validation_groups: [Registration, Default]
resetting:
token_ttl: 86400
email:
from_email: # Use this node only if you don't want the global email address for the resetting email
address: ...
sender_name: ...
template: FOSUserBundle:Resetting:email.txt.twig
form:
type: fos_user_resetting
name: fos_user_resetting_form
validation_groups: [ResetPassword, Default]
service:
mailer: fos_user.mailer.default
email_canonicalizer: fos_user.util.canonicalizer.default
username_canonicalizer: fos_user.util.canonicalizer.default
token_generator: fos_user.util.token_generator.default
user_manager: fos_user.user_manager.default
#group:
#group_class: ~ # Required when using groups
#group_manager: fos_user.group_manager.default
#form:
#type: fos_user_group
#name: fos_user_group_form
#validation_groups: [Registration, Default]
Swiftmailer配置
swiftmailer:
transport: "%mailer_transport%"
host: "%mailer_host%"
encryption: "%mailer_encryption%"
username: "%mailer_user%"
password: "%mailer_password%"
spool: { type: memory }
parameters.yml
# This file is auto-generated during the composer install parameters:
database_driver: pdo_mysql
database_host: 127.0.0.1
database_port: null
database_name: xxx
database_user: root
database_password: xxxxxxx
mailer_transport: smtp
mailer_encryption: tls
mailer_host: smtp-mail.outlook.com
mailer_user: xxxxxxxx@hotmail.fr
mailer_password: xxxxxxxxx
locale: en
secret: 103615aeafd19ddd60cf64267fbf6b871
答案 0 :(得分:0)
绝对不是Swiftmailer问题,在新的Windows安装之后确保所有内容都重新配置为像以前一样工作 - 防火墙,防病毒,Apache配置,PHP参数和扩展。不仅备份您的网络文件,而且还有使其工作的设置,这是非常明智的。即你将Benz发动机从奔驰中取出并装入宝马,如果它不起作用并不意味着引擎有问题,请重新检查你的windows环境,特别是XAMPP的错误和访问日志。 / p>
答案 1 :(得分:0)
很抱歉只回复。我确实检查了日志,一切正常。今天早上我告诉自己xampp服务器和swiftmailer的一面似乎都很好。 Swiftmailer使用端口25吧?我认为telkom我的服务提供商阻止端口25,因为我从我的手机到我的电脑共享互联网(3G),现在它工作正常。明天我将去telkom的办公室,我很生气他们浪费我的时间!
非常感谢你的帮助。见到你