Re: [PHP] Help !! Mail Function Problem (Newbie)
Hi Simos, mail([EMAIL PROTECTED], Subject, Line 1\nLine 2\nLine 3); thewall sendmail[4513]: g0H10I604513: from=apache, size=0, class=0, nrcpts=0, relay=apache@localhost I am not sendmail expert, so i am just guessing. the nrcpts=0 in your log message might be stands for number of recipients, and it is showing 0. So maybe you should pass the email address in proper string (enclose it inside quote), like this: mail([EMAIL PROTECTED], Subject, Line 1\nLine 2\nLine 3); -- Jimmy The past is present in the future -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Help !! Mail Function Problem (Newbie)
Put quotes around the TO address: mail([EMAIL PROTECTED], Subject, Line 1\nLine 2\nLine 3); -Original Message- From: Simos Varelakis [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 16, 2002 12:07 PM To: [EMAIL PROTECTED] Subject: [PHP] Help !! Mail Function Problem (Newbie) Hello to everyone My problem is that Mail function sends no e-mail the code is mail([EMAIL PROTECTED], Subject, Line 1\nLine 2\nLine 3); this is my /var/spool/mail/info log file thewall sendmail[4513]: g0H10I604513: from=apache, size=0, class=0, nrcpts=0, relay=apache@localhost this is the /etc/php.ini file [mail function] ;SMTP = localhost ;for win32 only ;sendmail_from = root@localhost ;for win32 only sendmail_path =/usr/sbin/sendmail -t Any Ideas ?? Thanks in advance Simos -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Help !! Mail Function Problem (Newbie)
mail([EMAIL PROTECTED], Subject, Line 1\nLine 2\nLine 3); -- Thanks jim I still have the same problem even with mail([EMAIL PROTECTED], Subject, Line 1\nLine 2\nLine 3); and it has to do with permstions ... Wright now I notice that in /var/log/mail/errors exist a line Jan 16 20:20:34 thewall sendmail[4670]: g0H1KYP04670: SYSERR(apache): Cannot create ./dfg0H1KYP04670: Permission denied so it has to do with permitions and only root mail user can send mail from the server.. The problem is that i dont know how to fix it anyway thanks again for your help :-) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]