You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 30, 2020. It is now read-only.
It's a good idea to add some recipients to an email, but these don't have to be in the To: header. Instead they could be in the "Cc:" or "Bcc:" header lines.
Because of this I think that these checks in Transport/Sendmail.php are not correct:
if (!$headers->has('to')) { throw new Exception\RuntimeException('Invalid email; contains no "To" header'); } $to = $headers->get('to'); $list = $to->getAddressList(); if (0 == count($list)) { throw new Exception\RuntimeException('Invalid "To" header; contains no addresses'); }
The only required header fields are the origination date field and the originator address field(s). All other header fields are syntactically optional.
Of course there's usually no email that does not have a recipient, but the check should look for them in To:, Cc: and Bcc:.