• Resolved Greendroid

    (@greendroid)


    Hey team,

    thanks for the great plugin!
    Unfortunately since a few weeks I have more and more issues with some mailproviders, that they reject my newsletter due to local policy issues.

    I have contacted those providers and they mentioned SPF/DKIM issues with my mail. So I contacted my hoster to verify my SPF/DKIM settings.
    From them I got the information, that the mails, the plugins sends, is missing the “envelope-from” header. So there is a default value put from my mailprovider which causes the error on the receiver side.

    Can you give me a hint how I can add this “envelope-from” header in the mails from the plugin?

    Thanks and kind regards
    Greendroid

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author mkscripts

    (@mkscripts)

    Hi Greendroid,

    You’re welcome! ??

    Our plugin uses the wp_mail() function to send emails. You can set ‘sendmail_from’ (envelope from) in your php.ini on your server. This is then automatically used by wp_mail(). It is best to ask your hosting what value to enter here. If you use SMTP, this value is not used and is set automatically to the FROM value (if you have not specified an explicit value in your code).

    You could also set the value by using the following PHP code:

    add_action( 'phpmailer_init', 'set_custom_from_envelope' );
    function set_custom_from_envelope( $phpmailer ) {
        $phpmailer->Sender = 'yourvalue';
    }

    Kind regards,
    Team Download After Email

    Thread Starter Greendroid

    (@greendroid)

    Hi mkscripts,

    thanks for your help, I was not aware, that this is a WordPress-wide setting.
    I have added this to my functions.php, lets see if that works ??

    Kind regards
    Greendroid

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘SPF/DKIM error while sending mails’ is closed to new replies.