You are here: Re: problem with using mail() « All PHP « IT news, forums, messages
Re: problem with using mail()

Posted by Michael Pichler on 04/05/06 15:33

Christopher Cheng schrieb:
> I have installed php on a Redhat FC2 machine. With the following
> script, I am able to email with
> "php mailtest.php"
> but when I put it in the apache server with the php installed, I could
> not email anymore.
>
> <?
> $body = "Someone submitted the following information from our online
> form";
> mail("myemailaddress@hotmail.com", "Our Online Form", $body);
> echo "email sent successfully!"
> ?>
>
> Is there something wrong with my php or apache settings?

Your code seems to be correct.
What error message do you get?

More info on the mail function:
http://php.net/manual/en/ref.mail.php

cheers
michael

 

Navigation:

[Reply to this 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

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