Reply to Re: Cannot use mail() in IE, only works in a debugger--help

Your name:

Reply:


Posted by Philip Ronan on 10/03/05 17:36

"baustin75@gmail.com" wrote:

> I have a very simple problem but cannot seem to figure it out. I have a
> very simple php script that sends a test email to myself.

A script that sends email to *itself*? I don't think so.

> If I try to run this same script in Internet Explorer or Opera I
> never recieve the email.

It makes no difference what browser you use. PHP scripts run on servers.
They don't run in browsers.

> $brian = "test@test.com";
> $subject = "MAC";
> $body = "first test email";
> $from = "brian@test.com";
>
> mail ($brian, $subject, $body, $from)

The fourth parameter is supposed to contain additional *headers*, not bare
email addresses. Try this instead:

$from = "From: brian@test.com";

--
phil [dot] ronan @ virgin [dot] net
http://vzone.virgin.net/phil.ronan/

[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

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