Версия для печати темы
Нажмите сюда для просмотра этой темы в оригинальном формате
Форум программистов > PHP: Общие вопросы > Mail и гуглопочта


Автор: Rodman 18.6.2010, 23:26
Дароф....

на хостинше использую простенький скрипт 
Код

<?php
$to      = '[email protected], [email protected], [email protected]';
$subject = 'the subject';
$message = 'hello';
$headers = 'From: [email protected]' . "\r\n" .
    'Reply-To: [email protected]' . "\r\n" .
    'X-Mailer: PHP/' . phpversion();

mail($to, $subject, $message, $headers);
?>


на первые два (один язик на yahoо, а другой на mail.ru) адреса письмо приходит, а на последний (любой ящик из гугло почты или на гугло движке) ничего.

на хостинге в папке mail/new нашел вот такую ошибку
Код

Return-path: <>
Envelope-to: [email protected]
Delivery-date: Fri, 18 Jun 2010 13:10:02 -0500
Received: from mailnull by cx15.justhost.com with local (Exim 4.69)
    id 1OPg0w-0006Hx-3N
    for [email protected]; Fri, 18 Jun 2010 13:10:02 -0500
X-Failed-Recipients: [email protected]
Auto-Submitted: auto-replied
From: Mail Delivery System <[email protected]>
To: [email protected]
Subject: Mail delivery failed: returning message to sender
Message-Id: <[email protected]>
Date: Fri, 18 Jun 2010 13:10:02 -0500

This message was created automatically by mail delivery software.

A message that you sent could not be delivered to one or more of its
recipients. This is a permanent error. The following address(es) failed:

  [email protected]
    No Such User Here 


есть подозрение, что хостинг или IP в черном списке Гугла...

или есть еще какая то причина, которую я не проверил?

как мне вылечить эту болячку?

Сенкс

Автор: Severyanin 20.6.2010, 17:29
Rodman,  попробуй в хедере указывать только From

Автор: CruorVult 21.6.2010, 16:53
и еще MIME-Version: 1.0 не забываем указывать

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)