PDA

View Full Version : PHP 5.2.6 help !


ahnah
21-08-2008, 11:40
hi all,

my current web hoster upgrade this php to PHP 5.2.6..

and then my mail() doesn't work any more.

Is there any workable sample code for me to follow ?

thanks !

yoshikawasaki
21-08-2008, 13:27
Hi,

I believe that there has been little change after upgrade to php 5.2.6 from php 5.2.5.

I would suggest adding debugging statements into your code to see where the error lies or if you could get your hosting provider to send you the error log section when you execute the code and get an error.

Sample code for the "mail" function can be found on PHP's website.
http://sg.php.net/manual/en/function.mail.php

Yoshi Kawasaki
FixIT - Reliable Hosting Services
yoshi@fixit.com.sg | yoshi@opentres.com
http://www.fixit.com.sg | http://www.opentres.com

ahnah
21-08-2008, 13:36
example of add debugging statements please ... is it just echo ?

yoshikawasaki
21-08-2008, 15:00
Hi,

Please see the following link for a brief primer.

http://www.ibm.com/developerworks/library/os-debug/

Yoshi Kawasaki
FixIT - Reliable Hosting Services
yoshi@fixit.com.sg | yoshi@opentres.com
http://www.fixit.com.sg | http://www.opentres.com

alanwoo
23-08-2008, 19:49
I would advise user to use the smtp mailer function than using the default mail() function from php.

As long as your smtp server is working, the following php mailer should works.

http://kb.newmediaexpress.com/showthread.php?t=94