javiribera Posted March 2, 2008 Share Posted March 2, 2008 Right now, I use the mail() php function to send mails by using a localhost mail server named postconf. But I wanna use an external SMTP server (gmail) cause I don't want to have a mail server running all the time. My server's on a linux machine. What do i have to set up? ??? Quote Link to comment https://forums.phpfreaks.com/topic/94044-configure-php-on-linux-to-send-mails-by-an-external-smtp/ Share on other sites More sharing options...
neylitalo Posted March 2, 2008 Share Posted March 2, 2008 Check into ssmtp, it's probably in your distro's package manager. Quote Link to comment https://forums.phpfreaks.com/topic/94044-configure-php-on-linux-to-send-mails-by-an-external-smtp/#findComment-481771 Share on other sites More sharing options...
javiribera Posted March 2, 2008 Author Share Posted March 2, 2008 Check into ssmtp, it's probably in your distro's package manager. OK, now I have instaled ssmtp, how can i configure it to send mails by gmail? thanks Quote Link to comment https://forums.phpfreaks.com/topic/94044-configure-php-on-linux-to-send-mails-by-an-external-smtp/#findComment-481839 Share on other sites More sharing options...
trq Posted March 3, 2008 Share Posted March 3, 2008 Have a look at /etc/ssmtp/ssmtp.conf, should be well commented. Quote Link to comment https://forums.phpfreaks.com/topic/94044-configure-php-on-linux-to-send-mails-by-an-external-smtp/#findComment-482024 Share on other sites More sharing options...
ryy705 Posted April 18, 2008 Share Posted April 18, 2008 Hello, I am on the same boat. I have lamp installed but I can't send mails using php. I don't need a fully functional mail server, just something to build/test webpages with before uploading them to the server. I installed ssmtp but I can't figure out how to use it. Man pages are not helping. Following shows whats in ssmtp.conf. What should I modify? I have been at for several days. Please help me if possible. # # Config file for sSMTP sendmail # # The person who gets all mail for userids < 1000 # Make this empty to disable rewriting. root=postmaster # The place where the mail goes. The actual machine name is required no # MX records are consulted. Commonly mailhosts are named mail.domain.com mailhub=mail # Where will the mail seem to come from? #rewriteDomain= # The full hostname hostname=ryy # Are users allowed to set their own From: address? # YES - Allow the user to specify their own From: address # NO - Use the system generated From: address #FromLineOverride=YES Quote Link to comment https://forums.phpfreaks.com/topic/94044-configure-php-on-linux-to-send-mails-by-an-external-smtp/#findComment-520721 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.