Include Sender header
-
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, );
- The topic ‘Include Sender header’ is closed to new replies.