Fwd: php5 and sendmail
| From: | Arvind Autar | Date: | Mon, 04 Jun 2007 21:55:27 +0000 |
| Subject: | Fwd: php5 and sendmail | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-256064@lists.php.net to get a copy of this message | ||
Hello all,
Firstly, I'm not subcsribed so please CC me.
The issue, I'm running FC6 with php5 and sendmail. I can use mail and send
mail with client inlc telnet sessions. However, mailing with php is just not
working.
This is what I'm using.
<?php
// The message
$message = "Line 1\nLine 2\nLine 3";
// In case any of our lines are larger than 70 characters, we should use
wordwrap()
$message = wordwrap($message, 70);
// Send
mail('arvind.autar@gmail.com', 'My Subject', $message);
?>
Anyone got a clue?