Mail not sent because of missing "send" key in message array
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3506182. --> Reported by: [alex.bukach](https://www.drupal.org/user/1958006) Related to !7 >>> <h3 id="summary-problem-motivation">Problem/Motivation</h3> <p>We use the "Views Send" module together with <a href="https://www.drupal.org/project/sendgrid_integration">SendGrid Integration</a>, and emails sent by "Views Send" are not actually send as the message array in <code>views_send_deliver()</code> does not have <code>'send' =&gt; TRUE</code> property.</p> <p>Also, we get other warnings because it does not have the "id" key (explicitly required for <code>\Drupal\Core\Mail\MailInterface::mail()</code>), and "module" key.</p> <h3 id="summary-proposed-resolution">Proposed resolution</h3> <p>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 <code>\Drupal\Core\Mail\MailManager::doMail()</code> adds.</p> <h3 id="summary-remaining-tasks">Remaining tasks</h3> <h3 id="summary-ui-changes">User interface changes</h3> <h3 id="summary-api-changes">API changes</h3> <h3 id="summary-data-model-changes">Data model changes</h3>
issue