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
Example code: $mail = new SendGrid\Mail($from, $subject, $to, $content); $mail->personalization[0]->addHeader('X-SMTPAPI','{"filters":{"removereceived":{"settings":{"enable":1}}}}');
Getting: {"errors":[{"field":null,"message":"resource not found"}
We can remove the received ip address with this code (X-SMTPAPI header)
$filters = [ 'removereceived' => [ 'settings' => [ 'enable' => 1 ], ], ]; $mailData->setFilters($filters); $mail_json = $mailData->jsonString(); $message_headers = $message->getHeaders(); $message_headers->addTextHeader($header, $mail_json);
any way to achieve it with helper classes?
The text was updated successfully, but these errors were encountered: