Mail not sent because of missing "send" key in message array

Created on 12 February 2025, 2 months ago

Problem/Motivation

We use the "Views Send" module together with SendGrid Integration , and emails sent by "Views Send" are not actually send as the message array in views_send_deliver() does not have 'send' => TRUE property.

Also, we get other warnings because it does not have the "id" key (explicitly required for \Drupal\Core\Mail\MailInterface::mail()), and "module" key.

Proposed resolution

We should add all those keys to the message array. Though not all of them are a requirement, it makes sense to return all the keys that \Drupal\Core\Mail\MailManager::doMail() adds.

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

🇨🇾Cyprus alex.bukach

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024