Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 02-25-2004, 12:15 PM   #1
Registered: Oct 2003
Posts: 43

Rep: Reputation: 15
send mail via PHP from website on apache. not working

Hello all,

I recently switched our office website from an windows web server to a Linux/Apache solution. On the web site I have forms that submit their info to a PHP script which extracts the proper e-mail address from an array and used to just relay that e-mail via our ISP's smtp server to the appropriate user. Problem is that now the web site is running on apache and the e-mail is no longer going out.

In my research I have found out that on Linux, PHP must use sendmail, or other mail server, that is installed on the same system. There was no mail server installed on the Linux system when I compiled and installed PHP.

I know that I will have to install sendmail and then re-compile and re-install PHP, that is not a problem. I have never used sendmail and I have no idea how to configure it to do what I need it to do.

Here in short is what I need:

The mail server that PHP will talk to will only be used for sending e-mail from the web site forms. No one in the company will use sendmail directly to either receive or send e-mail, we have another mail server for that that is in another office.

All this set up will do is send out e-mail from the forms. It would be great if I could setup sendmail to relay the e-mails to our ISP's smtp server so it would function the way it used to.

Again I am a complete newbie at anything to do with sendmail so instructions or a pointer to a newbie friendly site for setup similar to what I need would be greatly appreciated.



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
Develope website in PHP with Mambo: Apache? Lead Expression Linux - Networking 2 09-19-2005 10:32 AM
Help needed to send mail using a remote smtp server with php s1mpl1c1ty Programming 4 09-19-2005 12:53 AM
coding problem on php auto send mail after a period akamaru607 Programming 12 09-01-2005 07:48 AM
PHP Website with e-mail forms, what mail daemon? gbkyle Linux - Software 1 07-05-2005 12:33 PM
Cannot send mail with mail() command in PHP 4.3.4, Apache 2.0.48, Mandrake Linux 10 arcanum Linux - General 3 06-27-2004 06:06 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:08 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration