Page 1 of 1
Warning: Failed to Receive
Posted: Mon Jul 14, 2003 8:48 pm
by net7
the line is this :
Code: Select all
mail($recipient,$subject,$message);
they are all valid, and im sure the recipient is an email
Posted: Mon Jul 14, 2003 9:39 pm
by redhair
try $to
Posted: Tue Jul 15, 2003 1:48 am
by net7
Err. how so?
Posted: Tue Jul 15, 2003 6:48 am
by redhair
Thought that might work...
Just a wild guess.
So it didnt>?
Hmm...
$recipient is not valid, or mailbox dont work.
But you checked it all..ok. good luck.
Are you getting errors at all?
Posted: Tue Jul 15, 2003 1:03 pm
by net7
Yeah the error was the warning failed to recieve blah blah and it sent me to the line of mail()
Posted: Tue Jul 15, 2003 1:07 pm
by net7
I am using an apache server on my windows computer with php and mysql, ssl etc.. but maybe the mail isn't configured? how would I do this?
Posted: Tue Jul 15, 2003 2:14 pm
by redhair
There could be a number of reasons why email don't work.
For example my inet provider has a block on smtp port 25.
If thats the case with you, i'm affraid there is no other alternative then installing your own mail server.
If thats not the case...it could be a misconfig. in your php.ini.
Did you run a phpinfo on your server to see if everything is ok?
Posted: Tue Jul 15, 2003 2:20 pm
by redhair
Look at these lines in your php.ini, and change to correct vallues:
[mail function]
; For Win32 only.
SMTP = mail
; I have set it to 'mail', because thats the smtp server on my network.
; For Win32 only.
sendmail_from =
you@home.nl
Posted: Tue Jul 15, 2003 2:26 pm
by net7
thanks it worked
actually im using my home email but i guess that's ok as im not going to actually host sites on this comp.
Posted: Tue Jul 15, 2003 2:31 pm
by redhair
Great
