Only test email working
-
Hey,
I was trying to evaluate the plugin before buying it. I was on send grid and wanted to move to SES. Everything was working fine with my Send Grid setup.
I configured Amazon SES and this plugin and tested with Contact Forms and Test Email screen. Everything was working fine till that day.
Couple of days back, I updated the plugin to 1.0 version and now I see that no emails are being sent from the website.
Please note I have disabled Send Grid as first step before setting up the plugin and testing it.
Now, only test email works perfectly but no other email. Neither through Contact Forms nor through WP forms.
When I disable the plugin, email works through wp_mail method.
Any help will be appreciated and help me move to Amazon SES and paid version of this plugin as I badly need the feature of queue management with retry sending failed emails.
However, before it, I want to make sure that the setup works.
The page I need help with: [log in to see the link]
-
Hi,
Are the settings and AWS Access Keys still present in the plugin settings pages? I’m assuming they are since you’re able to send a test email.
If possible, could you enable debug logging by editing your wp-config.php file and changing this line:
define( 'WP_DEBUG', false );
To these lines:
define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG_DISPLAY', false );
And then try to trigger an email again. Any errors should be logged to the
wp-content/debug.log
file. Once done you should revert the above changes.Also, if possible, could you please also reply with the Diagnostic Info from the plugin support tab?
This is what I see in the logs
[26-Apr-2019 22:17:43 UTC] WP Offload SES #202: There was an error attempting to send your email. (Error executing “SendRawEmail” on “https://email.us-east-1.amazonaws.com”; AWS HTTP error: Client error:
POST https://email.us-east-1.amazonaws.com
resulted in a400 Bad Request
response:
<ErrorResponse xmlns=”https://ses.amazonaws.com/doc/2010-12-01/”>
<Error>
<Type>Sender</Type>
InvalidPara (truncated…)
InvalidParameterValue (client): Missing required header ‘From’. – <ErrorResponse xmlns=”https://ses.amazonaws.com/doc/2010-12-01/”>
<Error>
<Type>Sender</Type>
InvalidParameterValue
<Message>Missing required header ‘From’.</Message>
</Error>
<RequestId>1ce196cf-6871-11e9-966f-7fe7d2d828d0</RequestId>
</ErrorResponse>
)Thanks for the details. Do you have any custom
wp_mail
filters (or other filters for sending mail) in place by any chance?Could you please attach the diagnostic info from the “Support” tab? Feel free to redact any personal information in it (site URL, etc.)
I do not have any custom filters. I was using SendGrid Official Plugin to send emails before.
This is the Support Tab
Web Server: Apache/2.4.33 (Ubuntu)
WordPress: 5.1.1
WP Locale: en_US
PHP: 7.0.33-0ubuntu0.16.04.4
PHP Memory Limit: 128M
WP Memory Limit: 40M
Memory Usage: 2 MB
WP Max Upload Size: 2 MB
PHP Time Limit: 0
PHP Error Log: /var/www/html/wp-content/debug.log
MySQL: 5.7.25
Database Name: wordpress
Table Prefix: wp_
ext/mysqli: yes
WP Cron: Enabled
cURL: 7.47.0
OpenSSL: OpenSSL 1.0.2g 1 Mar 2016
fsockopen: Enabled
allow_url_fopen: Enabled
Zlib Compression: Enabled
Basic Auth: Disabled
Proxy: Disabled
Blocked External HTTP Requests: NoneSend Mail Using SES: On
Enable Open Tracking: Off
Enable Click Tracking: Off
Region: us-east-1
Log Duration: 30WPOSES_SETTINGS: Not defined
WPOSES_LICENCE: Not defined
AWS_USE_EC2_IAM_ROLE: Not definedWP_DEBUG: Yes
WP_DEBUG_LOG: Yes
WP_DEBUG_DISPLAY: No
SCRIPT_DEBUG: NoUPLOADS: Not defined
Active Theme Name: SmartMag
Active Theme Version: 3.2.0
Active Theme Folder: smart-magActive Plugins:
AMP Stories (v1.0.4) by Ahmed Kaludi, Mohammed Kaludi
Accelerated Mobile Pages (v0.9.97.49) by Ahmed Kaludi, Mohammed Kaludi
Ad Inserter Pro (v2.3.7) by Ad Inserter Pro
Advanced AMP ADS (v1.9.1) by Mohammed Kaludi, Mohammed Khaled
Akismet Anti-Spam (v4.1.1) by Automattic
Better Click To Tweet (v5.8.1) by Ben Meredith
Broken Link Checker (v1.11.8) by ManageWP
Bunyad Page Builder (v1.3.80) by ThemeSphere & Greg Priday (Original)
Bunyad Shortcodes (v1.0.9) by ThemeSphere
Bunyad Widgets (v1.0.7) by ThemeSphere
Code Snippets (v2.13.3) by Shea Bunge
Custom Sidebars (v3.2.3) by WPMU DEV
Duplicate Page (v3.5) by mndpsingh287
Easy Social Share Buttons for WordPress (v6.2.1) by CreoApps
Easy Table of Contents (v1.7) by Steven A. Zahm
Flamingo (v1.9) by Takayuki Miyoshi
GD bbPress Toolbox Pro (v5.1.2) by Milan Petrovic
GDPR Cookie Consent (v1.7.6) by WebToffee
Import External Images (v1.4) by Marty Thornley
Instagram Feed (v1.12) by Smash Balloon
MailPoet 2 (v2.11) by MailPoet
MailPoet 2 Premium (v2.7.9) by MailPoet
Ninja Popups (v4.6.2) by ArsCode
ReplyMe (v1.0.5) by Neekey
Revive Old Posts (v8.2.4) by revive.social
SendPulse Free Web Push (v1.1.0) by SendPulse
ShortPixel Image Optimizer (v4.13.1) by ShortPixel
Sphere Core (v1.0.4) by ThemeSphere
SumoMe (v1.30) by SumoMe
ThirstyAffiliates (v3.8) by Rymera Web Co
ThirstyAffiliates Pro (v1.3.3) by Rymera Web Co
Thrive Architect (v2.1.13) by Thrive Themes
Thrive Product Manager (v1.2.1) by Thrive Themes
WP Add Custom CSS (v1.1.4) by Daniele De Santis
WP Offload SES Lite (v1.0) by Delicious Brains
WP Retina 2x (v5.5.5) by Jordy Meow
WP Rocket (v3.3.1.1) by WP Media
WPForms Lite (v1.5.2.3) by WPForms
What Would Seth Godin Do (v2.0.6) by Richard K Miller
Yoast SEO Premium (v11.0) by Team Yoast
bbPress (v2.6-rc-5) by The bbPress ContributorsMust-use Plugins:
WP fail2ban (v3.5.3) by Charles LeckliderDrop-ins:
advanced-cache.php – advanced-cache.phpIn addition to the above information, what I just did is that I deactivate the option on the plugin to send emails. I installed the ‘WP Amazon SES SMTP’
After installing this plugin, the emails are working fine as well.
However I wanted to use the method of WP SES via API not SMTP to work.
Anyhelp in providing the solution will be highly appreciated.
This is the email content for the email not going in from WP-MAIL logs.
I have changed the valid email ids with abc.
To: [email protected] From: Devil On Wheels™ <[email protected]> Reply-To: [email protected] Content-Type: text/html; charset=utf-8 Content-Type: text/html; <!doctype html> <html dir="ltr" xmlns="https://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office"> <head> <!--[if gte mso 15]> <xml> <o:OfficeDocumentSettings> <o:AllowPNG/> <o:PixelsPerInch>96</o:PixelsPerInch> </o:OfficeDocumentSettings> </xml> <![endif]--> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>Devil On Wheels™</title> <style type="text/css"> p{ margin:10px 0; padding:0; } table{ border-collapse:collapse; } h1,h2,h3,h4,h5,h6{ display:block; margin:0; padding:0; } img,a img{ border:0; height:auto; outline:none; text-decoration:none; } body,#bodyTable,#bodyCell{ height:100%; margin:0; padding:0; width:100%; } #outlook a{ padding:0; } img{ -ms-interpolation-mode:bicubic; } table{ mso-table-lspace:0pt; mso-table-rspace:0pt; } .ReadMsgBody{ width:100%; } .ExternalClass{ width:100%; } p,a,li,td,blockquote{ mso-line-height-rule:exactly; } a[href^=tel],a[href^=sms]{ color:inherit; cursor:default; text-decoration:none; } p,a,li,td,body,table,blockquote{ -ms-text-size-adjust:100%; -webkit-text-size-adjust:100%; } .ExternalClass,.ExternalClass p,.ExternalClass td,.ExternalClass div,.ExternalClass span,.ExternalClass font{ line-height:100%; } a[x-apple-data-detectors]{ color:inherit !important; text-decoration:none !important; font-size:inherit !important; font-family:inherit !important; font-weight:inherit !important; line-height:inherit !important; } #bodyCell{ padding:50px 50px; } .templateContainer{ max-width:600px !important; border:0; } a.mcnButton{ display:block; } .mcnTextContent{ word-break:break-word; } .mcnTextContent img{ height:auto !important; } .mcnDividerBlock{ table-layout:fixed !important; } /***** Make theme edits below if needed *****/ /* Page - Background Style */ body,#bodyTable{ background-color:#e9eaec; } /* Page - Heading 1 */ h1{ color:#202020; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size:26px; font-style:normal; font-weight:bold; line-height:125%; letter-spacing:normal; } /* Page - Heading 2 */ h2{ color:#202020; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size:22px; font-style:normal; font-weight:bold; line-height:125%; letter-spacing:normal; } /* Page - Heading 3 */ h3{ color:#202020; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size:20px; font-style:normal; font-weight:bold; line-height:125%; letter-spacing:normal; } /* Page - Heading 4 */ h4{ color:#202020; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size:18px; font-style:normal; font-weight:bold; line-height:125%; letter-spacing:normal; } /* Header - Header Style */ #templateHeader{ border-top:0; border-bottom:0; padding-top:0; padding-bottom:20px; text-align: center; } /* Body - Body Style */ #templateBody{ background-color:#FFFFFF; border-top:0; border: 1px solid #c1c1c1; padding-top:0; padding-bottom:0px; } /* Body -Body Text */ #templateBody .mcnTextContent, #templateBody .mcnTextContent p{ color:#555555; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size:14px; line-height:150%; } /* Body - Body Link */ #templateBody .mcnTextContent a, #templateBody .mcnTextContent p a{ color:#ff7f50; font-weight:normal; text-decoration:underline; } /* Footer - Footer Style */ #templateFooter{ background-color:#e9eaec; border-top:0; border-bottom:0; padding-top:12px; padding-bottom:12px; } /* Footer - Footer Text */ #templateFooter .mcnTextContent, #templateFooter .mcnTextContent p{ color:#cccccc; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size:12px; line-height:150%; text-align:center; } /* Footer - Footer Link */ #templateFooter .mcnTextContent a, #templateFooter .mcnTextContent p a{ color:#cccccc; font-weight:normal; text-decoration:underline; } @media only screen and (min-width:768px){ .templateContainer{ width:600px !important; } } @media only screen and (max-width: 480px){ body,table,td,p,a,li,blockquote{ -webkit-text-size-adjust:none !important; } } @media only screen and (max-width: 480px){ body{ width:100% !important; min-width:100% !important; } } @media only screen and (max-width: 680px){ #bodyCell{ padding:20px 20px !important; } } @media only screen and (max-width: 480px){ .mcnTextContentContainer{ max-width:100% !important; width:100% !important; } } </style> </head> <body style="height: 100%;margin: 0;padding: 0;width: 100%;-ms-text-size-adjust: 100%;-webkit-text-size-adjust: 100%;background-color: #e9eaec;"> <!-- Don't forget to run final template through https://templates.mailchimp.com/resources/inline-css/ --> <center> <table align="center" border="0" cellpadding="0" cellspacing="0" height="100%" width="100%" id="bodyTable" style="border-collapse: collapse;mso-table-lspace: 0pt;mso-table-rspace: 0pt;-ms-text-size-adjust: 100%;-webkit-text-size-adjust: 100%;height: 100%;margin: 0;padding: 0;width: 100%;background-color: #e9eaec;"> <tr> <td align="center" valign="top" id="bodyCell" style="mso-line-height-rule: exactly;-ms-text-size-adjust: 100%;-webkit-text-size-adjust: 100%;height: 100%;margin: 0;padding: 50px 50px;width: 100%;"> <!-- BEGIN TEMPLATE // --> <!--[if gte mso 9]> <table align="center" border="0" cellspacing="0" cellpadding="0" width="600" style="width:600px;"> <tr> <td align="center" valign="top" width="600" style="width:600px;"> <![endif]--> <table border="0" cellpadding="0" cellspacing="0" width="100%" class="templateContainer" style="border-collapse: collapse;mso-table-lspace: 0pt;mso-table-rspace: 0pt;-ms-text-size-adjust: 100%;-webkit-text-size-adjust: 100%;border: 0;max-width: 600px !important;"> <tr> <td valign="top" id="templateBody" style="mso-line-height-rule: exactly;-ms-text-size-adjust: 100%;-webkit-text-size-adjust: 100%;background-color: #FFFFFF;border-top: 0;border: 1px solid #c1c1c1;padding-top: 0;padding-bottom: 0px;"> <table border="0" cellpadding="0" cellspacing="0" width="100%" class="mcnTextBlock" style="min-width: 100%;border-collapse: collapse;mso-table-lspace: 0pt;mso-table-rspace: 0pt;-ms-text-size-adjust: 100%;-webkit-text-size-adjust: 100%;"> <tbody class="mcnTextBlockOuter"> <tr> <td valign="top" class="mcnTextBlockInner" style="mso-line-height-rule: exactly;-ms-text-size-adjust: 100%;-webkit-text-size-adjust: 100%;"> <table align="left" border="0" cellpadding="0" cellspacing="0" width="100%" style="min-width: 100%;border-collapse: collapse;mso-table-lspace: 0pt;mso-table-rspace: 0pt;-ms-text-size-adjust: 100%;-webkit-text-size-adjust: 100%;" class="mcnTextContentContainer"> <tbody> <tr> <td valign="top" style="padding-top: 30px;padding-right: 30px;padding-bottom: 30px;padding-left: 30px;" class="mcnTextContent"> <table align="left" border="0" cellpadding="0" cellspacing="0" width="100%" style=" display:block;min-width: 100%;border-collapse: collapse;width:100%;"> <tbody> <tr> <td style="color:#333333;padding-top: 20px;padding-bottom: 3px;"><strong>Name</strong></td> </tr> <tr> <td style="color:#555555;padding-top: 3px;padding-bottom: 20px;">munnu sharma</td> </tr> </tbody> </table> <table align="left" border="0" cellpadding="0" cellspacing="0" width="100%" style="border-top:1px solid #dddddd; display:block;min-width: 100%;border-collapse: collapse;width:100%;"> <tbody> <tr> <td style="color:#333333;padding-top: 20px;padding-bottom: 3px;"><strong>Email</strong></td> </tr> <tr> <td style="color:#555555;padding-top: 3px;padding-bottom: 20px;"><a href="mailto:[email protected]">[email protected]</a></td> </tr> </tbody> </table> <table align="left" border="0" cellpadding="0" cellspacing="0" width="100%" style="border-top:1px solid #dddddd; display:block;min-width: 100%;border-collapse: collapse;width:100%;"> <tbody> <tr> <td style="color:#333333;padding-top: 20px;padding-bottom: 3px;"><strong>Comment or Message</strong></td> </tr> <tr> <td style="color:#555555;padding-top: 3px;padding-bottom: 20px;">test email 3 with ses api</td> </tr> </tbody> </table> </td> </tr> </tbody> </table> </td> </tr> </tbody> </table> </td> </tr> <tr> <td valign="top" id="templateFooter" style="mso-line-height-rule: exactly;-ms-text-size-adjust: 100%;-webkit-text-size-adjust: 100%;background-color: #e9eaec;border-top: 0;border-bottom: 0;padding-top: 12px;padding-bottom: 12px;"> <table border="0" cellpadding="0" cellspacing="0" width="100%" class="mcnTextBlock" style="min-width: 100%;border-collapse: collapse;mso-table-lspace: 0pt;mso-table-rspace: 0pt;-ms-text-size-adjust: 100%;-webkit-text-size-adjust: 100%;"> <tbody class="mcnTextBlockOuter"> <tr> <td valign="top" class="mcnTextBlockInner" style="mso-line-height-rule: exactly;-ms-text-size-adjust: 100%;-webkit-text-size-adjust: 100%;"> <table align="left" border="0" cellpadding="0" cellspacing="0" width="100%" style="min-width: 100%;border-collapse: collapse;mso-table-lspace: 0pt;mso-table-rspace: 0pt;-ms-text-size-adjust: 100%;-webkit-text-size-adjust: 100%;" class="mcnTextContentContainer"> <tbody> <tr> <td valign="top" class="mcnTextContent" style="padding-top: 9px;padding-right: 18px;padding-bottom: 9px;padding-left: 18px;mso-line-height-rule: exactly;-ms-text-size-adjust: 100%;-webkit-text-size-adjust: 100%;word-break: break-word;color: #aaa;font-family: Helvetica;font-size: 12px;line-height: 150%;text-align: center;"> <!-- Footer content --> Sent from <a href="https://devilonwheels.com" style="color:#bbbbbb;">Devil On Wheels™</a> </td> </tr> </tbody> </table> </td> </tr> </tbody> </table> </td> </tr> </table> <!--[if gte mso 9]> </td> </tr> </table> <![endif]--> <!-- // END TEMPLATE --> </td> </tr> </table> </center> </body> </html>
That’s interesting. The email you provided does appear to have a “From” header, so it’s unsual that it’s getting flagged by SES as not having that header.
Was this email generated via Mailpoet or another plugin, or was it a custom email you sent?
In case it helps I had the exact same issue but found that a function was adding a filter to wp_mail but not returning the email data after. As soon as I set it to return the data it worked again.
Previously:
public function log_email( $email_data ) { //Log email functionality here } add_filter( 'wp_mail', 'log_email', 20 );
Updated to:
public function log_email( $email_data ) { //Log email functionality here return $email_data; } add_filter( 'wp_mail', 'log_email', 20 );
I’ve also found that the plugin doesn’t seem to actually set the ‘from’ address to the one set in the plugin. I’ve had to override it manually with filters:
function sender_email( $original_email_address ) { return '[email protected]'; } add_filter( 'wp_mail_from', 'sender_email' );
- This reply was modified 5 years, 6 months ago by Richard.
@richardj87 I’m having exact same issue since recent plugin update, could you advise which file should be updated with the above code? many thanks
The code that caused the issue for me was actually in the theme itself, not the SES plugin. It’s likely your theme or another plugin is adding a filter to wp_mail that’s causing the issue.
- The topic ‘Only test email working’ is closed to new replies.