• Hi there,
    We are using this plugin with contact form 7 to set up email.

    Actual problem we are facing while using yahoo smtp.
    Send a Test Email is working and mail is going to inbox, but while we are checking using contact form 7 it’s not working.

    Same contact form with gmail smtp setup is working and mail is going to inbox.

    Let me know what is the actual problem. Is this the problem in plugin or server? As gmail SMTP is working while yahoo SMTP is not.

    https://wordpress.org/plugins/wp-mail-smtp/

Viewing 1 replies (of 1 total)
  • Hi partha.rkl,
    I had a similar thing. What I did was first installing a mail log plugin to see what the headers contained (like https://wordpress.org/plugins/wp-mail-logging/ ).
    Then I forced the FROM to always be what was set by WP-mail-SMTP in my own plugin using the below code.
    That seems to have solved for me.
    Pascal.

    /**
    * Since the install of WP-Mail-SMTP we need to make sure the FROM is the same as the one specified in the plugin
    * These filters will overwrite any FROM send by other plugins.
    */
    add_filter('wp_mail_from','custom_wp_mail_from');
    function custom_wp_mail_from($email) {
    	return get_option('mail_from');
    }
    add_filter('wp_mail_from_name','custom_wp_mail_from_name');
    function custom_wp_mail_from_name($name) {
    	return get_option('mail_from_name');
    }

Viewing 1 replies (of 1 total)
  • The topic ‘Contact form is not working while using Yahoo smtp’ is closed to new replies.