@thinkingserious Hi there, I am trying to send the AMP dynamic emails with sendgrid library. But I am unable to send, getting error of Invalid AMP in inbox. I have validated my amp template also, and its correct. But not able to send via library.
Does Sendgrid-php library support amp mime type?
Kindly help me in this:
Here is my code:
include 'sendgrid-php/vendor/autoload.php';
$subject = "Thinks you'd love sign-up today!";
$email = new \SendGrid\Mail\Mail();
$email->setFrom("", "");
$email->setSubject($subject);
$sendgrid = new \SendGrid();
$email->addTo('');
$body = "hi";
$email->addContent("text/plain", $body);
$email->addContent("text/html", $body)
$body = '<!doctype html><html ⚡4email>Hello World in AMP!
@thinkingserious Hi there, I am trying to send the AMP dynamic emails with sendgrid library. But I am unable to send, getting error of Invalid AMP in inbox. I have validated my amp template also, and its correct. But not able to send via library.
Does Sendgrid-php library support amp mime type?
Kindly help me in this:
Here is my code: include 'sendgrid-php/vendor/autoload.php'; $subject = "Thinks you'd love sign-up today!"; $email = new \SendGrid\Mail\Mail(); $email->setFrom("", "");
$email->setSubject($subject);
$sendgrid = new \SendGrid();
$email->addTo('');
$body = "hi";
$email->addContent("text/plain", $body);
$email->addContent("text/html", $body)
$body = '<!doctype html><html ⚡4email>Hello World in AMP!