Reply to Re: Why can't I send a mail with PHP

Your name:

Reply:


Posted by Stefan Mueller on 11/24/05 09:08

> $mail_headers = 'From: "Sender Name" <sender@domain.com>' . "\n"
> . 'MIME-Version: 1.0' . "\n"
> . 'Message-ID: <' . md5(uniqid(time())) . '@domain.com>' . "\n"
> . 'Content-Type: text/html; charset="iso-8859-1"' . "\n"
> . 'Content-Transfer-Encoding: 8bit' . "\n"
> . 'Importance: Normal' . "\n";

It's really unbelievable. I've tried so many headers and
'From: "Sender Name" <sender@domain.com>'
never works.
That same with your header. PHP says:
[24-Nov-2005 08:00:05] PHP Warning: mail() [<a
href='function.mail'>function.mail</a>]: SMTP server response: 501 5.5.4
Invalid Address in C:\PHP\file.php on line 132

If I modify your header to
$jt = 'From: sender@domain.com' . "\n"
. 'MIME-Version: 1.0' . "\n"
. 'Message-ID: <' . md5(uniqid(time())) . '@domain.com>' . "\n"
. 'Content-Type: text/html; charset="iso-8859-1"' . "\n"
. 'Content-Transfer-Encoding: 8bit' . "\n"
. 'Importance: Normal' . "\n";
it works perfect again.

But why is
'From: "Sender Name" <sender@domain.com>'
never working.

I'm trying since several days and I'm really loosing hope.
Stefan

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация