Results 1 to 2 of 2
Thread: php mail function problem
-
06-07-2005, 03:53 AM #1Junior Guru
- Join Date
- May 2004
- Location
- Pakistan
- Posts
- 233
php mail function problem
Hi,
I am having one problem with php after i upgraded it to version 4.3.10. Zend is also updated but now mail function mail() of php is not working .....
Anyone help me fixing this issue ????Cloud Hosting
~ Shared Cpanel Hosting, Cpanel Reseller, Business Cloud Hosting, SSD Cpanel Reseller Hosting ~
-
06-07-2005, 04:39 AM #2Retired Moderator
- Join Date
- Sep 2004
- Location
- Flint, Michigan
- Posts
- 5,766
What do you mean by it is not working? Have you tried a simple script to make sure it is the mail function?
ie.
<?php
$to = 'nobody@example.com';
$subject = 'the subject';
$message = 'hello';
$headers = 'From: webmaster@example.com' . "\r\n" .
'Reply-To: webmaster@example.com' . "\r\n" .
'X-Mailer: PHP/' . phpversion();
mail($to, $subject, $message, $headers);
?>
What shows up in your apache logs after running a script like that?█ Mike from Zoodia.com
█ Professional web design and development services.
█ In need of a fresh hosting design? See what premade designs we have in stock!
█ Web design tips, tricks, and more at MichaelPruitt.com