diff --git a/api/includes/mailer.php b/api/includes/mailer.php index c140bd6..3af8dc2 100644 --- a/api/includes/mailer.php +++ b/api/includes/mailer.php @@ -11,11 +11,8 @@ function sendgridSend(string $toEmail, string $toName, string $subject, string $ } $payload = [ - 'from' => [ - 'email' => defined('MAIL_FROM') ? MAIL_FROM : 'noreply@epictravelexpeditions.com', - 'name' => defined('MAIL_FROM_NAME') ? MAIL_FROM_NAME : 'Epic Travel Expeditions', - ], - 'to' => [['email' => $toEmail, 'name' => $toName]], + 'from' => defined('MAIL_FROM') ? MAIL_FROM : 'noreply@epictravelexpeditions.com', + 'to' => $toEmail, 'subject' => $subject, 'html' => $htmlBody, ];