Passing reply-to in header for mailgun
-
When using Post SMTP with Mailgun, forms sent from plugins such as the popular Gravity Forms do not pass their reply-to address to Mailgun.
-
I have been trying to troubleshoot this exact issue, and we are using sendgrid. This has been an issue on and off for the past several months. We also have found a lot of emails are sent without the From: Name populated.
HostName: redacted.in2net.com
OS: Linux redacted.doteasy.com 3.10.0-714.10.2.lve1.5.17.1.el7.x86_64 #1 SMP Tue May 22 10:39:25 EDT 2018 x86_64
PHP: Linux 5.6.38 en_US.UTF-8
PHP Dependencies: iconv=Yes, spl_autoload=Yes, openssl=Yes, sockets=Yes, allow_url_fopen=Yes, mcrypt=Yes, zlib_encode=Yes
WordPress: 4.9.8 en_US UTF-8
WordPress Theme: Icicle Tricycles Custom Theme
WordPress Plugins: Gravity Forms, a3 Lazy Load, Autoptimize, iThemes Security, Disable Comments, Duplicate Post, Duplicator, Google Analytics Dashboard for WP (GADWP), Anti-Malware Security and Brute-Force Firewall, Members, Menu Social Icons, Post SMTP, Redirection, Responsive Lightbox & Gallery, Sassy Social Share, Shortcodes Ultimate, WooSlider, Yoast SEO, Smush, WP-Sweep, NextGEN Gallery
WordPress wp_mail Filter(s): wp_staticize_emoji_for_email
Postman: 1.9.5
Postman Sender Domain (Envelope|Message): redacted.com | redacted.com
Postman Prevent Message Sender Override (Email|Name): No | No
Postman Active Transport: SendGrid API (https://api.sendgrid.com:443)
Postman Active Transport Status (Ready|Connected): Yes | Yes
Postman Deliveries (Success|Fail): 22849 | 36
Postman PHP LogLevel: 30000The Test Email function seems to work fine, so perhaps there is an issue here with Gravity Forms and Post SMTP plugin.
Here’s the session transcript. Note the blank From Name:
————
https://api.sendgrid.com:443--Raw message follows-- SendGridMail Object ( [namespace:protected] => SendGrid [from] => SendGridEmail Object ( [name:SendGridEmail:private] => "[email protected]" [email:SendGridEmail:private] => [email protected] ) [personalization] => Array ( [0] => SendGridPersonalization Object ( [tos:SendGridPersonalization:private] => Array ( [0] => SendGridEmail Object ( [name:SendGridEmail:private] => [email:SendGridEmail:private] => [email protected] ) ) [ccs:SendGridPersonalization:private] => [bccs:SendGridPersonalization:private] => [subject:SendGridPersonalization:private] => [headers:SendGridPersonalization:private] => Array ( [X-Mailer] => Postman SMTP 1.9.5 for WordPress (https://www.ads-software.com/plugins/post-smtp/) ) [substitutions:SendGridPersonalization:private] => [custom_args:SendGridPersonalization:private] => [send_at:SendGridPersonalization:private] => ) ) [subject] => Custom Bike for Robert redacted in redacted, redacted [contents] => Array ( [0] => SendGridContent Object ( [type:SendGridContent:private] => text/html [value:SendGridContent:private] => <html> <head> <title>Custom Bike for Robert redacted in redacted, redacted</title> </head> <body> <table width="99%" border="0" cellpadding="1" cellspacing="0" bgcolor="#EAEAEA"><tr><td> <table width="100%" border="0" cellpadding="5" cellspacing="0" bgcolor="#FFFFFF"> <tr bgcolor="#EAF2FA"> <td colspan="2"> <font style="font-family: sans-serif; font-size:12px;"><strong>Name</strong></font> </td> </tr> <tr bgcolor="#FFFFFF"> <td width="20"> </td> <td> <font style="font-family: sans-serif; font-size:12px;">Robert redacted</font> </td> </tr> <tr bgcolor="#EAF2FA"> <td colspan="2"> <font style="font-family: sans-serif; font-size:12px;"><strong>Email</strong></font> </td> </tr> <tr bgcolor="#FFFFFF"> <td width="20"> </td> <td> <font style="font-family: sans-serif; font-size:12px;"><a href='mailto:[email protected]'>[email protected]</a></font> </td> </tr> <tr bgcolor="#EAF2FA"> <td colspan="2"> <font style="font-family: sans-serif; font-size:12px;"><strong>Phone</strong></font> </td> </tr> <tr bgcolor="#FFFFFF"> <td width="20"> </td> <td> <font style="font-family: sans-serif; font-size:12px;">redacted</font> </td> </tr> <tr bgcolor="#EAF2FA"> <td colspan="2"> <font style="font-family: sans-serif; font-size:12px;"><strong>City</strong></font> </td> </tr> <tr bgcolor="#FFFFFF"> <td width="20"> </td> <td> <font style="font-family: sans-serif; font-size:12px;">redacted</font> </td> </tr> <tr bgcolor="#EAF2FA"> <td colspan="2"> <font style="font-family: sans-serif; font-size:12px;"><strong>State / Province</strong></font> </td> </tr> <tr bgcolor="#FFFFFF"> <td width="20"> </td> <td> <font style="font-family: sans-serif; font-size:12px;">redacted</font> </td> </tr> <tr bgcolor="#EAF2FA"> <td colspan="2"> <font style="font-family: sans-serif; font-size:12px;"><strong>Country</strong></font> </td> </tr> <tr bgcolor="#FFFFFF"> <td width="20"> </td> <td> <font style="font-family: sans-serif; font-size:12px;">United States</font> </td> </tr> <tr bgcolor="#EAF2FA"> <td colspan="2"> <font style="font-family: sans-serif; font-size:12px;"><strong>Regarding</strong></font> </td> </tr> <tr bgcolor="#FFFFFF"> <td width="20"> </td> <td> <font style="font-family: sans-serif; font-size:12px;">Custom Bike</font> </td> </tr> <tr bgcolor="#EAF2FA"> <td colspan="2"> <font style="font-family: sans-serif; font-size:12px;"><strong>Message</strong></font> </td> </tr> <tr bgcolor="#FFFFFF"> <td width="20"> </td> <td> <font style="font-family: sans-serif; font-size:12px;">redacted.</font> </td> </tr> </table> </td> </tr> </table> </body> </html> ) ) [attachments] => [template_id] => [sections] => [headers] => [categories] => [custom_args] => [send_at] => [batch_id] => [asm] => [ip_pool_name] => [mail_settings] => [tracking_settings] => [reply_to] => SendGridReplyTo Object ( [email:SendGridReplyTo:private] => [email protected] [name:SendGridReplyTo:private] => ) )
Hi,
Please download the dev version from here:
https://downloads.www.ads-software.com/plugin/post-smtp.zipupload it manually and update me if the issue resolved.
Thanks @yehudah! I have tried the dev version. Both the From: field and the Reply-To: fields are not recognized in Gmail.
Here’s what the relevant header looks like:
Content-Type: text/html; charset=us-ascii Date: Thu, 29 Nov 2018 22:30:33 +0000 (UTC) From: Mime-Version: 1.0 Reply-To: [email protected] To: [email protected]
Effectively if I reply to the email in gmail, it contains no To: address. When the email arrives, it has nothing in the From: name in gmail.
It appears the Reply-To is populated, however the From: and Mime-Version pieces are causing some issues on the receiver side.
Session transcript:
This is the conversation between Postman and the mail server. It can be useful for diagnosing problems. DO NOT post it on-line, it may contain your account password. https://api.sendgrid.com:443 --Raw message follows-- SendGridMail Object ( [namespace:protected] => SendGrid [from] => SendGridEmail Object ( [name:SendGridEmail:private] => "[email protected]" [email:SendGridEmail:private] => [email protected] ) [personalization] => Array ( [0] => SendGridPersonalization Object ( [tos:SendGridPersonalization:private] => Array ( [0] => SendGridEmail Object ( [name:SendGridEmail:private] => [email:SendGridEmail:private] => [email protected] ) ) [ccs:SendGridPersonalization:private] => [bccs:SendGridPersonalization:private] => [subject:SendGridPersonalization:private] => [headers:SendGridPersonalization:private] => [substitutions:SendGridPersonalization:private] => [custom_args:SendGridPersonalization:private] => [send_at:SendGridPersonalization:private] => ) ) [subject] => Subject, Redacted [contents] => Array ( [0] => SendGridContent Object ( [type:SendGridContent:private] => text/html [value:SendGridContent:private] => content-of-email-redacted ) ) [attachments] => [template_id] => [sections] => [headers] => [categories] => [custom_args] => [send_at] => [batch_id] => [asm] => [ip_pool_name] => [mail_settings] => [tracking_settings] => [reply_to] => SendGridReplyTo Object ( [email:SendGridReplyTo:private] => [email protected] [name:SendGridReplyTo:private] => ) )
I really appreciate your time and help on this, I discovered Gravity Forms has its own Sendgrid addon, tried it out and it works perfectly. Might be something to look at to fix this issue longterm within this plugin.
To OP: they also have one for Mailgun.
- The topic ‘Passing reply-to in header for mailgun’ is closed to new replies.