[PHP-DB] Mail question
I have a quick, probably easy to answer question. I am trying to add the ability to email from like a quest book or a calendar event and get an authentication error in my error log. I can only believe that this is due to my smtp server needed to know my login and password. Is there a way I can pass this in the php.ini file? I am using apache 2.0 and PHP 4.03 on a windows xp machine. If this can be done, please let me know, any other suggestions would be welcomed. Thanks -Rich -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DB] Mail question
I'm replying off-list as this isn't a database question, but check out the pear mail class at: http://pear.php.net It handles SMTP authentication. The standard mail() function does not. HTH -Micah On Monday 14 February 2005 10:12 am, ReClMaples wrote: I have a quick, probably easy to answer question. I am trying to add the ability to email from like a quest book or a calendar event and get an authentication error in my error log. I can only believe that this is due to my smtp server needed to know my login and password. Is there a way I can pass this in the php.ini file? I am using apache 2.0 and PHP 4.03 on a windows xp machine. If this can be done, please let me know, any other suggestions would be welcomed. Thanks -Rich -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DB] mail() question
I am trying to get the mail() function to work. Here is my test code: ini_set(SMTP, mail.mydomain.com); ini_set(sendmail_from, [EMAIL PROTECTED]); echo ini_get(SMTP); echo brbr, ini_get(sendmail_from); echo brbr, ini_get(sendmail_path); echo $success = mail([EMAIL PROTECTED], A subject, Some contents); I print the settings out to make sure they are right. And they look like right. But even if the mail() function retuns 1, the mail still doesn't go through. Don't even see a log on the mail server. Can somebody tell me what I am missing? Thanks a lot for your help. -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php