【问题标题】:Facing an error on setFrom on sendgrid the wrd is not found in sendgrid在 sendgrid 上的 setFrom 上遇到错误,在 sendgrid 中找不到 wrd
【发布时间】:2019-10-20 09:13:48
【问题描述】:

未处理的 sendgrid\mail\typexception。检查信息:既没有包含在 try catch 块中也没有使用@thows 标签记录的异常报告

$email->setFrom("noreply");

【问题讨论】:

  • 请多解释。
  • 我正在尝试发送和发送电子邮件,但它没有发送,当我将鼠标悬停在 setFrom 上时,我看到了那个错误......或者如果可能的话,我可以通过其他方式发送电子邮件

标签: php email sendgrid


【解决方案1】:

我认为您应该发送电子邮件至setFrom。大多数网站使用noreply@sitename.comno-reply@sitename.com 之类的名称。但是您尝试使用noreply,这不是一个格式正确的电子邮件地址。

这里有更多关于 from SendGrid's itself 的信息。

【讨论】:

  • 我用过这个但还是不行ng$email->setFrom("seh@gmail.com", "Example User");
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2020-03-06
  • 2019-07-08
  • 2012-07-10
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多