PDA

View Full Version : [ubuntu] PHP send email setup



syn4k
August 12th, 2008, 12:34 AM
I'm curious how I can enable my server so that I can actually send email from it using PHP. I'm betting that setting up the server environment instead of the desktop would be adventageous but I've never tried that and my environment is already working perfectly aside from this mail issue.

I installed postfix:
sudo apt-get -y install postfix

I assumed that would fix it.

Xiong Chiamiov
August 12th, 2008, 02:53 AM
You'll have to set up a whole mail server (https://help.ubuntu.com/community/MailServer) if you want to send mail completely from your server. If you have a mail server you can use, you'll have to get the SMTP settings (http://us2.php.net/manual/en/mail.configuration.php) correct in your php.ini.

syn4k
August 22nd, 2008, 11:18 PM
Thanks for your response. I did set the value in the php.ini and yes, it was not set prior to this. I will continue to look into this.