Page MenuHomePhabricator

Thank you email fails to send but reports success
Closed, ResolvedPublic

Description

We tried to send a thank you email for a donation to a malformed address (something@otherthing@gmail.com). Success was reported in the UI ("Message sent") but evidently the message was not sent, nor was an error logged.

In Thankyou::Send, we got the "thank_you: Sending ty email to..." log message, but nothing after that in the log or process (no activity created, etc). Nevertheless, CRM_WmfThankyou_Form_WMFThankYou::postProcess() displayed "Message sent".

This was for cid 70044348 with the . in their email replaced with a @

Event Timeline

Lars moved this task from Backlog to In Progress on the Fundraising Tech - Chaos Crew board.
Lars added subscribers: MDemosWMF, Eileenmcnaughton.

This appears to be a bigger problem in that throwing an WMFException doesn't work, it seems because we don't have a handler (maybe it works from the queues but not from the UI?). So none of the exceptions in Thankyou::Send work.

Change #1225692 had a related patch set uploaded (by Lars SG; author: Lars SG):

[wikimedia/fundraising/crm@master] Throw an exception and log an error for bad thank you email addresses.

https://gerrit.wikimedia.org/r/1225692

Change #1225692 merged by jenkins-bot:

[wikimedia/fundraising/crm@master] Throw an exception and log an error for bad thank you email addresses.

https://gerrit.wikimedia.org/r/1225692

Change #1228588 had a related patch set uploaded (by Lars SG; author: Lars SG):

[wikimedia/fundraising/crm@master] Switch thank you email sending to CRM_Core_Exception from WMFException

https://gerrit.wikimedia.org/r/1228588

Change #1228588 merged by Eileen:

[wikimedia/fundraising/crm@master] Switch thank you email sending to CRM_Core_Exception from WMFException

https://gerrit.wikimedia.org/r/1228588

Damilare set Final Story Points to 4.