I have a process that uses the Send Email plugin. Sporadically, the emails appear to never send. But I don’t see any logged errors in the ppwatch.log. What log files should I review to find Send Email errors?
You need to look at the MergeEngine logs and the Server logs
Email errors can be either synchronous (detected immediately, like invalid email address syntax or an unreachable SMTP server) or asynchronous (where the SMTP server notices the problem later in the process).
Connect can only reliably see and report synchronous errors. Asynchronous errors commonly cause the SMTP server to send a message explaining the error back to the sender at a later point in time. This means you need to monitor that address somehow.
This is one of the limitations of the Send Email plugin. A faster and more convenient alternative (if you can fit it into your workflow) would be the Render Email plugin.
With Render Email the messages are passed to an intermediary service like Sendgrid, which is much better equipped to handle and report asynchronous errors. It can show you an overview of all failed messages, and keep track of statistics like how many recipients actually opened the email.
Try increasing the Workflow logging level in Preferences → Logging to “Task success and failure with details” so the Send Email plugin writes more information to the logs.
You can also capture %{error.errorlog} in Workflow to record SMTP errors or trigger alerts when sending fails.
You can use SMTP service provider (<removed>) as an alternate option,
If you need detailed SMTP responses or delivery tracking, those are usually available from your SMTP provider’s logs/API rather than directly from the plugin itself.
The error was found that the message size exceeded our internal limit of 50MB. What’s odd is that,when this occurs, I can send the attachment(s) via my personal outlook client with no issue, as the attachment size averages 30MB.
So the new mystery is trying to understand why the message size from the Send Email plugin in Workflow seems to be about double what it “should” be.
There are actually two processes, very similar. Each ends by sending an email with an attachment roughly 20MB - 35MB. The first one goes through. The second does not, because of the message size being 70MB or so. This makes me think the second process/email is somehow picking up the first process’s temp files… or… something?
EDIT: I learned the size difference is the difference between a binary attachment (Outlook) and the same attachment converted to ASCII Base64 (SMTP/Workflow Send Email). I’ve now accepted that Send Email isn’t a viable solution for my need, and I’ll look into OneDrive and/or SharePoint instead.