Install ssmtp Install ssmtp: sudo apt-get install ssmtp
Edit the ssmtp config file : gksu gedit /etc/ssmtp/ssmtp.conf
Enter this in the file:
1 2 3 4 5 6 7 |
root=username@kutayzorlu.com mailhub=smtp.kutayzorlu.com:465 rewriteDomain=kutayzorlu.com AuthUser=username AuthPass=password FromLineOverride=YES UseTLS=YES |
#!!! Do not use STARTTLS and TLS in the same time, You cant use both of them in the same time.
Enter the email address of the person who will receive your email:
1 2 3 4 5 |
ssmtp recepient_name@kutayzorlu.com Now enter this: To: recipient_name@kutayzorlu.com From: username@kutayzorlu.com |
Subject: Sent from a terminal!
Your content goes here. Lorem ipsum dolor sit amet, consectetur adipisicing.
To send the email: Ctrl + D
You can also save the text mentioned in Point 5 into a text file and send it using:
ssmtp recipient_name@gmail.com < filename.txt