SSMTP:
Generally used to send the mail.
Installation:
-> Press ALT+CTRL+T (Open terminal).
-> sudo apt-get install ssmtp
-> sudo gedit /etc/ssmtp/ssmtp.conf
Then it opens the gedit. paste the beolw code at the end to the text.
Root=mail_id@gmail.com
Mailhub=smtp.gmail.com:465
RewriteDomain=gmail.com
AuthUser=Username
AuthPass=mail_id_password
FromLineOverride=Yes
UseTLS=Yes
from the above code
Username --->Enter Your name,
mail_id@gmail.com--->Enter your email ,
mail_id_password -->Enter mail id password .
->Then save the file.
->go to terminal enter below commands.
sudo apt-get install heirloom-mailx -yC
->echo testing|mail -s 'Test Mail' destination@gmail.com
From the above line
Test Mail --------------------->Title of the mail.
destination@gmail.com---->Enter receivers mail id.
Generally used to send the mail.
Installation:
-> Press ALT+CTRL+T (Open terminal).
-> sudo apt-get install ssmtp
-> sudo gedit /etc/ssmtp/ssmtp.conf
Then it opens the gedit. paste the beolw code at the end to the text.
Root=mail_id@gmail.com
Mailhub=smtp.gmail.com:465
RewriteDomain=gmail.com
AuthUser=Username
AuthPass=mail_id_password
FromLineOverride=Yes
UseTLS=Yes
from the above code
Username --->Enter Your name,
mail_id@gmail.com--->Enter your email ,
mail_id_password -->Enter mail id password .
->Then save the file.
->go to terminal enter below commands.
sudo apt-get install heirloom-mailx -yC
->echo testing|mail -s 'Test Mail' destination@gmail.com
From the above line
Test Mail --------------------->Title of the mail.
destination@gmail.com---->Enter receivers mail id.
0 Response to "Install SSMTP in linux "
Post a Comment