0

In word press I have installed the plugin and I have a contact form on a webpage (localhost) on wamp64. I enter data into the form and submit but I receive no email but no error. I then read I needed to download the smpt plugin and I am using a gmail account. I set this up but again the form doesn't send me an email.

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
jagguy
  • 183
  • 1
  • 3
  • 16

2 Answers2

1

Try to use below plugin which is working only after provide proper credential from admin.

WP Mail SMTP

Ashish Patel
  • 3,551
  • 1
  • 15
  • 31
  • please remove your answer as it isnt an answer – jagguy Jan 02 '17 at 13:19
  • then you have to switch selection and try from test mail ...check your credential as well..it should work. – Ashish Patel Jan 02 '17 at 13:19
  • this is from the test mail. 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 – jagguy Jan 02 '17 at 13:24
  • use No encryption at Encryption option. uncheck SSL – Ashish Patel Jan 02 '17 at 13:33
  • This simply doesnt work with wordpress. I have tried all combinations for settings with TLS and without.. using a MVC framework I can email easy from the same gmail account on the same computer – jagguy Jan 02 '17 at 22:28
  • i am using php 5.6 which I see many people are having problems with send email – jagguy Jan 03 '17 at 01:28
  • i am using PHP 5.6 as well and having no problem with this plugin since last 3 month. – Ashish Patel Jan 03 '17 at 04:35
0

It looks like the plugin is faulty . A common solution is to edit the plugin which is really not a great way to get it to work.

for emails to work need to add in this code before line 149 on file 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
                    )
                    );
jagguy
  • 183
  • 1
  • 3
  • 16