• I am currently using Postman SMTP, but it’s currently replicating the WordPress mail delivery (long story, not going into it here!)

    What I have noticed is that the sender, and who it is from differ. I’d like these to match, so that instead of it showing as [email protected] as the From address, I’d like to match the address that sent it.

    I have emails that are sent from user to user, so I can’t set a single address, it needs to check before it sends, and set the Sender and From the same.

    I have tried the example below (which I think is fine for WordPress without Postman SMTP installed, but does not make a difference

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

    Any help would be appreciated

Viewing 1 replies (of 1 total)
  • Thread Starter bcanr2d2

    (@bcanr2d2)

    Anyone got a fix for this, as I believe it is causing my emails to be seen as spam, as the Sender and From email addresses do not match.

Viewing 1 replies (of 1 total)
  • The topic ‘Get Sender and From matching in emails’ is closed to new replies.