v1.2.3 — Failed acknowledgement e-mails now report the exact reason
Follow-up to v1.2.2 (the e-mail-send crash fix). 1.2.2 stopped the crash; the failure itself was still reported generically (a fixed "could not be sent" admin notice, wp_mail_returned_false in the log). This release surfaces the specific reason, so an SMTP misconfiguration is diagnosable at a glance.
What changed
- The mailer now captures the real failure reason and shows it:
- When
wp_mail()returns false, it reads the message WordPress reports viawp_mail_failed(the SMTP transport's own message, e.g. "Could not authenticate" or "Could not connect to host smtp.…"). - When
wp_mail()throws (the 1.2.2 case), it records the exception message.
- When
- The admin "e-mail failed" notice now appends "Reported reason: …", and the same reason is written into the tamper-evident log.
- The reason is length-capped so it never bloats the log or the notice.
Why it matters
Turns "the acknowledgement e-mail failed" into "the SMTP host rejected authentication" — actionable without opening the PHP error log. The legal guarantee is unchanged: the withdrawal is always recorded, the consumer always reaches their confirmation page, and the failure is always logged and resendable.
No database or schema change; back-compatible. WooCommerce + FluentCart + EDD.
Install
Download wwu-withdrawal-button.zip below and upload via Plugins → Add New → Upload Plugin, or update in place.