我正在使用sendgrid,我想设置我发送的电子邮件的样式,但在电子邮件中,他们显示原始代码我不知道为什么。
有没有我做不正确的地方或什么?这是我写的代码...
require 'vendor/autoload.php';
$email = new \SendGrid\Mail\Mail();
$email->setFrom("my email address");
$email->setSubject("Welcome");
$email->addTo($EmailAddress);
//Below code where i am having issues
$email->addContent("text/plain", "<img src='Assets/images/logo.png'> Welcome To my channel...");
$sendgrid = new \SendGrid('your api code');
$sendgrid->send($email);
慕后森