Вопрос по gmail, php, phpmailer, email – PHPmailer Gmail "от" является учетной записью Gmail

3

Я пытаюсь отправить письмо с помощью PHPmailer и gmail. Но когда я отправляю почту с моего аккаунта Gmail, а не без ответа. Как мне установить отсутствие ответа с?

Код у меня есть:

$mail = new PHPMailer();  

$mail->Mailer = "smtp";
$mail->Host = "ssl://smtp.gmail.com";
$mail->Port = 465;
$mail->SMTPAuth = true; 
$mail->Username = "[email protected]"; 
$mail->Password = "password"; 

$mail->From     = "[email protected]";
$mail->AddAddress($to);  
$mail->AddReplyTo("[email protected]","no-reply");

$mail->Subject  = $subject;
$mail->Body     = $msg;
$mail->WordWrap = 150; 
$mail->send();

Получаемое письмо (заголовки):

Return-Path: <[email protected]>

Который должен быть [email protected]

заранее спасибо

Error: User Rate Limit Exceeded Graph
Error: User Rate Limit Exceeded Chris

Ваш Ответ

2   ответа
5

Error: User Rate Limit Exceeded

  1. Log in to the Google Apps mail account for [email protected], go to Settings, then Accounts, then Send mail as, and ensure that [email protected] has been validated. I haven't tested this, but this should allow to send mail from [email protected], rather than from [email protected] on behalf of [email protected]

  2. Actually create a user on Google Apps with the username [email protected], and send email through that account. If [email protected] needs a copy, you could always BCC the address and setup a filter on [email protected] to forward any failures to [email protected]

2

Error: User Rate Limit Exceeded[email protected].

Error: User Rate Limit Exceeded@your.domainError: User Rate Limit Exceeded

Похожие вопросы