mirror of
https://github.com/myronblair/tomsjavajive
synced 2026-06-30 17:50:32 -05:00
Fix CyberMail from field — use separate from/from_name fields (API rejects Name <email> format)
This commit is contained in:
+2
-1
@@ -60,7 +60,8 @@ class Email {
|
||||
// Strip internal-only keys that are not CyberMail API fields
|
||||
$apiOptions = array_diff_key($options, array_flip(['metadata']));
|
||||
$payload = array_merge([
|
||||
'from' => $this->fromName . ' <' . $this->fromEmail . '>',
|
||||
'from' => $this->fromEmail,
|
||||
'from_name' => $this->fromName,
|
||||
'to' => $to,
|
||||
'subject' => $subject,
|
||||
'html' => $html,
|
||||
|
||||
Reference in New Issue
Block a user