【发布时间】:2016-04-21 13:14:38
【问题描述】:
我们正在使用 sendgrid 发送电子邮件,
我们已经尝试过了,
$email = new SendGrid\Email();
$emails = array("foo@bar.com", "another@another.com", "other@other.com");
$email->setTos($emails);
$email->setHtml(array($message1,$message1));
$sendgrid->send($email);
如何一次设置不同的 - 不同的$email->setHtml(array($message1,$message1))。
【问题讨论】:
-
解释
different - different $message at a time.? -
@urfusion,已编辑问题
-
所以你想给不同的用户发送不同的消息?您应该为此使用不同的实例。
-
据我所知,您希望向不同的电子邮件 ID 发送不同的消息。因此,您可以通过创建一个电子邮件 ID 和消息循环并每次调用发送函数来做到这一点