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
Navigation:
[Reply to this message]
|