Modules can override the From: address, breaks Postmark sending

Created on 5 August 2010, over 14 years ago
Updated 28 September 2023, about 1 year ago

Modules like http://drupal.org/project/ecard can override the default From: address used to send email, by passing the "from" parameter, like this:

drupal_mail('ecard', 'ecard-mail', $email, $language, $params, $ecard->sender_email);

When this happens, if the Postmark module has been set to process transactional email, an error will result because the From: address doesn't have a sender signature:

Fatal error: Uncaught exception 'Exception' with message 'Error while mailing. Postmark returned HTTP code 422 with message "Sender signature not found for email.'

I can't see any way around this other than ensuring that if you use the Postmark module you don't use other modules that allow the From: address to be overriden.

Suggest documentation be added to this effect.

πŸ“Œ Task
Status

Closed: outdated

Version

1.0

Component

Documentation

Created by

πŸ‡¨πŸ‡¦Canada reinvented

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024