Reply to Re: Setting up Apache2 (Test Server on localhost) for email

Your name:

Reply:


Posted by natalie vacca on 04/03/06 11:54

Thanks J.O.,


I will test it in the real enviroment, but would like to test it with other
code on my test server.

To me this is right:

....
$txtHeaders = 'From: me@myplace.com' . "\r\n" .
'Reply-To: me@myplace.com' . "\r\n" .
'X-Mailer: PHP/' . phpversion();


mail($txtTo, $txtSubject, $txtMessage, $txtHeaders);

All other variables are defined to. Do I need to log in to the sending
account somehow?

Thanks anyone who can help.
NV

"J.O. Aho" <user@example.net> wrote in message
news:49bl00FnujuhU3@individual.net...
> natalie vacca wrote:
>> Hi all,
>>
>> I am designing a PHP5, MySQL website. I am developing on my local
>> machine, Windows XP and Apache 2. How do I test sending emails PHP mail()
>> function.
>
> You need to install a mailserver and modify your php.ini to support the
> installed mailserver.
>
>
>> Do I need to set up Apache to run CGI. If so, how. Please.
>
> Depending on what kind of php you write, it can be a good idea to really
> test it in a real environment.
>
>
> //Aho

[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

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