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

View previous topic View next topic Go down

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

Post by jamied_uk on 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 http://jnet.forumn.biz/t567-setting-up-mail-server-on-linux-localhost?highlight=mail+alias

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

Posts : 2278
Join date : 2010-05-09
Age : 34
Location : UK

http://address-shortner.co.uk

Back to top Go down

View previous topic View next topic Back to top


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