LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   send mail via PHP from website on apache. not working (https://www.linuxquestions.org/questions/linux-software-2/send-mail-via-php-from-website-on-apache-not-working-150385/)

mdkelly069 02-25-2004 12:15 PM

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.

Thanks
mdkelly


All times are GMT -5. The time now is 02:23 PM.