2014-05-16 43 views
5

我继续得到Laravel这个错误,但一切看起来是正确的:Laravel:期待响应250,但得到了“”有消息“”

Expecting response 250 but got "" with message "" 

从我已经能够研究,出现问题当通过Sendgrid(或任何提供者)发送电子邮件时,接收服务器以空白代码进行响应。

SendGrid并没有传递空白代码,而是将其转换为此; Sendgrid预计250(每件事都可以)代码,但什么都没有。

我不知道如何解决这个问题。我遇到了几个解决方案,但他们没有工作。

对于那些谁有兴趣,这里是经由控制器发送电子邮件的代码:我有同样的问题,因为我SendGrid密码不正确

 if ($circle->business) 
     { 
      $email = $circle->creator->email; 
      $name = $circle->creator->fullName(); 
     } 
     else 
     { 
      $email = $user->email; 
      $name = $user->fullName(); 
     } 

     Mail::send('layouts.'.$this->client->template->file.'.views.emails.transaction-receipt', compact('user'), function($message) use($user) 
     { 
      $message->from($user->account->email, $user->account->name); 
      $message->to($user->email, $user->name)->subject($user->account->name.' Transaction Receipt'); 
     }); 
+1

你何时/何时收到错误信息? – Laurence

回答

2

如果您的凭据不正确SendGrid不会发送响应。

相关问题