Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 07-14-2008, 03:02 AM   #1
LQ Newbie
Registered: Jul 2008
Posts: 1

Rep: Reputation: 0
PHP problems

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!
Old 07-14-2008, 03:39 AM   #2
Mr. C.
Senior Member
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 63
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.
Old 07-15-2008, 07:24 AM   #3
LQ Newbie
Registered: Jul 2008
Posts: 4

Rep: Reputation: 0
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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems with PHP file functions... (many problems) enigma_0Z Programming 1 04-22-2006 08:15 AM
More PHP problems :( arichardson Linux - Software 1 11-21-2005 04:24 PM
slackware, apache and PHP from .tgz - problems with PHP szymon Slackware 2 09-06-2004 05:57 PM
problems with php jogurt666 Linux - Software 12 11-17-2003 06:07 AM
PHP Problems Savedadogs Linux - Software 4 04-24-2002 07:47 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:39 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration