LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   PHP problems (https://www.linuxquestions.org/questions/linux-newbie-8/php-problems-655579/)

mhoqchy 07-14-2008 02:02 AM

PHP problems
 
Friends,
Can anyone help me how to send mail from PHP by authenticating SMTP server and how can i configure php for sending mail.Please help me by sending the appropriate code.It's urgent!
Muhib

Mr. C. 07-14-2008 02:39 AM

php on *nix systems uses the sendmail binary, which does not support SMTP AUTH. You need to have your MTA perform that function.

Which MTA are you using?

You'd better be patient; this will most likely take you some time.

bnettles 07-15-2008 06:24 AM

PHP and SMTP Authentication
 
When I was dealing with this, I concluded that conceptually what you need to do is configure Sendmail to autoforward to the SMTP Server. Your PHP should out of the box already communicate sending email through sendmail based on the default settings in the php.ini file. You are not going to get PHP to communicated directly with the SMTP server. However, you can configure Sendmail to do so.


All times are GMT -5. The time now is 09:28 PM.