Pedro Graca wrote:
Karuna wrote: I have been trying to write a simple mail script using PHP and
apache on Windows XP. Eventhough the script is saying that the mail is
successfully sent, I am unable get it in my mailbox(I have given my
mail address in $to). I am using the mail() function and I have
made the following changes in php.ini
[mail function]
; For Win32 only.
SMTP = localhost
smtp_port = 25
; For Win32 only.
sendmail_from = aa*@Comcast.net
CAn anybody help me with this?
If you have a SMTP server installed (and correctly configured) on
your machine, you should have no problem with that php.ini.
But ...
I doubt you have a mail server installed on your machine.
You have to specify an /existing/ mail server for the SMTP entry in
php.ini.
Try putting in SMTP the same server you have for your mail client
(Outlook Express????) and in sendmail_from an address for that
server, eg:
SMTP = example.com
sendmail_from = us**@example.com
--
Mail to my "From:" address is readable by all at
http://www.dodgeit.com/ == ** ## !! ------------------------------------------------ !! ## **
== TEXT-ONLY mail to the whole "Reply-To:" address ("My Name"
<my@address>) may bypass my spam filter. If it does, I may reply from another
address!
Are you sure that the mail function return TRUE?
If it is, I found this note on the PHP.net website that said the
following. I hope this helps:
-------------------------------------------
Quote from PHP.net
-------------------------------------------
thomas at nimstad dot com
01-Oct-2004 01:40
Under win32 you must! set sendmail_from in php.ini to solve the
error: "sendmail_from" not set in php.ini or custom "From:" header
missing. Only setting the headers correctly won't do. When set, the
"From:" header will be used :-)
-------------------------------------------
http://us2.php.net/manual/en/function.mail.php
-------------------------------------------
Hope this helps, good luck.