PC & IT SUPPORT MADE EASY FORUM
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Setting up SMTP for localhost web server for sending free emails using gmail

Go down

Setting up SMTP for localhost web server for sending free emails using gmail Empty Setting up SMTP for localhost web server for sending free emails using gmail

Post by jamied_uk 16th July 2015, 16:17

Here is what you should type to open up your php.ini file so that you can edit the smtp mail settings

Code:
sudo gedit /etc/php5/apache2/php.ini


now click on the magnifying glass and find the text smtp

keep looking until you find SMTP = localhost


Now put in your details.

Now restart your php service or restart your pc if you need to make sure the services have been restarted naturally (if you prefer).

now test your mail gets sent.


  • Gmail SMTP server name: smtp.gmail.com
  • Gmail SMTP username: your Gmail address
  • Gmail SMTP password: your password
  • Gmail SMTP port: 465



Code:
sudo apt-get install sendmail


Code:
sudo gedit /etc/ssmtp/ssmtp.conf



Code:
sudo gedit /etc/ssmtp/revaliases






For more info and https://jnet.forumotion.com/t567-setting-up-mail-server-on-linux-localhost?highlight=mail+alias

examples http://www.serversmtp.com/en/smtp-gmail-configuration
jamied_uk
jamied_uk
Admin

Posts : 2950
Join date : 2010-05-09
Age : 41
Location : UK

https://jnet.sytes.net

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum