cant get contact form to send emails in wordpress for gmail account from localhost
用词按时,我已经安装了插件,并且在wamp64的网页(本地主机)上有联系表。
我将数据输入表单并提交,但没有收到电子邮件,但没有错误。
然后,我读到我需要下载smpt插件,并且我使用的是Gmail帐户。
我进行了设置,但是再次该表格没有给我发送电子邮件。
1 2 3 4 5 6 7 8 9 10 11 | I also followed these settings for gmail and it still didn't work where my host was smtp.gmail.com http://www.wpbeginner.com/plugins/how-to-receive-wordpress-emails-from-localhost/ http://www.wpbeginner.com/beginners-guide/how-to-create-a-contact-form-in-wordpress/ On the test email from the smpt plugin I see the error but I don't know what settings I need to use to make this work from a gmail account. The SMTP debugging output is shown below: Warning: stream_socket_enable_crypto(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed |
尝试使用下面的插件,该插件仅在提供管理员的适当凭据后才能工作。
WP邮件SMTP
插件似乎有问题。
常见的解决方案是编辑插件,但这实际上不是使它正常工作的好方法。
要使电子邮件正常工作,需要在文件wp_email_smtp
上的第149行之前添加此代码。
1 2 3 4 5 6 7 8 | $phpmailer = apply_filters('wp_mail_smtp_custom_options', $phpmailer); $phpmailer->SMTPOptions = array( 'ssl' => array( 'verify_peer' => false, 'verify_peer_name' => false, 'allow_self_signed' => true ) ); |