2017-01-02 58 views
0

在word中按我已經安裝了插件,我有一個聯繫表單wamp64上的網頁(localhost)。 我向表單中輸入數據並提交,但我沒有收到任何電子郵件,但沒有收到任何錯誤。 然後我讀了我需要下載smpt插件,我使用的是Gmail帳戶。 我設置了這個,但表單並沒有給我發電子郵件。無法獲取聯繫表格發送電子郵件wordpress gmail帳戶從localhost

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 
+0

也許[這](http://stackoverflow.com/questions/21337859/sendmail-wamp-php)幫助。 –

+0

我正在使用WordPress的插件和這篇文章does not地址 – jagguy

回答

1

嘗試使用下面的插件,只有在從管理員提供適當的憑證後才能使用。

WP Mail SMTP

+0

我已經在使用這個插件 – jagguy

+0

請刪除你的答案,因爲它不是一個答案 – jagguy

+0

那麼你必須切換選擇和嘗試從測試郵件...檢查您的憑證以及。它應該工作。 –

0

它看起來像插件故障。 一個常見的解決方案是編輯這個插件,這實際上不是一個很好的方法來使它工作。

的電子郵件工作需要在這行代碼149之前添加的文件wp_email_smtp

   $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 
        ) 
        ); 
相關問題