NYCPHP Meetup

NYPHP.org

[nycphp-talk] mail function in Linux-Apache

Carlos G. Chiossone carlos at sprout.net
Tue Sep 16 11:23:10 EDT 2003


Hi guys, thanks in advance for helping.

I am having strange issues with a Linux server running Apache. I can send emails from the command line using the mail command but when I try sending it from PHP it goes nowhere. I also don't get any errors neither on the Apache log file nor on the screen. My php.ini is set to give all errors and warnings and the mail is pointing to the correct directory where sendmail is, actually using the default path set by PHP.

These are some of the formats I tried in the php file:

mail("email at sprout.net","nothing at all","jkh kjhg kjygj kjhgkjhty kjhg kjh");

mail("email at sprout.net","nothing at all","jkh kjhg kjygj kjhgkjhty kjhg kjh", "From: carlos at sprout.net\r\n"."Reply-To: carlos at sprout.net<carlos at sprout.net>\r\n");

mail("email at sprout.net","nothing at all","jkh kjhg kjygj kjhgkjhty kjhg kjh", "From: carlos at sprout.net\r\n"."Reply-To: carlos at sprout.net<carlos at sprout.net>\r\n","-f cc at sprout.net");


Any ideas why the mail from PHP may not be going out? 

Thanks a lot,
Carlos



More information about the talk mailing list