Error 400 message : At least FromEmail or Sender must be provided
Closed this issue · 0 comments
soytouch commented
Facing an issue when sending email.. Everything is defined well in the body but
...
$body = [
'Messages' => [
[
'From' => [
'Email' => getenv('SMTP_FROM_EMAIL'),
'Name' => "Me"
],
'To' => [
[
'Email' => "example@gmail.com",
'Name' => "User fullname"
]
],
'Subject' => "Subject",
'HTMLPart' => $message
]
]
];
$mailjet->post(Resources::$Email, ['body' => $body]);