Re: Fwd: php5 and sendmail

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, June 4, 2007 4:55 pm, Arvind Autar wrote:
> 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@xxxxxxxxx', 'My Subject', $message);
> ?>
>
> Anyone got a clue?

Here are some clues:

Show us EXACTLY what you have in php.ini for the sendmail setting.

Check your sendmail logs to see what happens when PHP tries to send
email.

su to the PHP User and try to send email from the command line.

-- 
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux