我遵循了这些说明。
https://codex.wordpress.org/Plugin_API/Action_Reference/phpmailer_init
电子邮件正在为woocommerce发送和工作,例如,当我完成购买发票时会发送。但由于某些原因,在网站上注册新用户时,电子邮件不会发送。
有没有一些日志可以让我在wordpress中查看。
更新:我只在使用Xampp的本地主机上遇到了这个问题。真实的服务器看起来工作得很好。
提前感谢
发布于 2020-07-15 16:22:56
您可以为gmail配置C:\xampp\php\php.ini和c:\xampp\sendmail\sendmail.ini来发送邮件。
取消注释'extension=php_openssl.dll'
SMTP=smtp.gmail.com smtp_port=587 sendmail_from =
my-gmail-id@gmail.com sendmail_path =
""C:\xampp\sendmail\sendmail.exe“-t"
smtp_server=smtp.gmail.com smtp_port=587密码验证用户名=my-gmail-id@gmail.com auth_ error_logfile=error.log =my-gmail- debug_logfile=debug.log密码force_sender=my-gmail-id@gmail.com
https://stackoverflow.com/questions/62906941
复制相似问题