• Resolved Aries-Belgium

    (@aries-belgium)


    If the Sender header is missing Mailgun will automatically generate one based on the domain and the from email, like: “[email protected]”. Some spam filter will flag this as spam because the sender email address could not be verified.

    This can easily be fixed by including the Sender header in the message. With the API you set the “h:Sender” parameter:

    
        $body = array(
            'from'    => "{$from_name} <{$from_email}>",
            'h:Sender' => $from_email,
            'to'      => $to,
            'subject' => $subject,
        );
    
    • This topic was modified 2 years, 9 months ago by Aries-Belgium.
  • The topic ‘Include Sender header’ is closed to new replies.