Y
Y
Yevhenii K2018-02-21 19:48:03
WordPress
Yevhenii K, 2018-02-21 19:48:03

Why is Contact Form 7 not sending emails?

Contact Form7 stopped sending letters to the mail, letters are displayed in Flamingo.
What could be wrong?
Maybe it has something to do with installing an SSL certificate?
UPD. Problem solved. I updated the form with the email settings and everything worked.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
O
Orkhan Hasanli, 2018-02-21
@azerphoenix

Hello.
To be more precise, this may be due to a crookedly installed SSL certificate. Usually hosters put LE and quite often crookedly.
Add this code to functions.php of your theme

add_filter( 'wp_mail_smtp_custom_options' , function( $phpmailer ){
        $phpmailer->SMTPOptions = array(
            'ssl' => array(
                'verify_peer' => false,
                'verify_peer_name' => false,
                'allow_self_signed' => true
            )
        );
        return $phpmailer;
    });

A
Ainur Valiev, 2018-02-22
@vaajnur

is the mail server running? check the wp_mail() function on the test script

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question