We can sent emails using the terminals. This is an advantage if the internet connection is very slow , since it take much time to load the GUI web interface.
Here are the steps to sent a gmail using/from the terminal.
1)We have to install a package
for Debain : apt-get install ssmtp
gnu/linux : yum install ssmtp
2)edit the file /etc/ssmtp/ssmtp.conf with your favourite editor.
Add the following lines at the end.
AuthUser=youremailaddress(senders adress)
AuthPass=email password
FromLineOverride=Yes
mailhub=smtp.gmail.com
Use STARTTLS=YES
save & quit!
3)To sent an email, type this on the terminal
echo "This is a test mail' | mail -s "hello" receiptemailaddress@gmail.com
Here are the steps to sent a gmail using/from the terminal.
1)We have to install a package
for Debain : apt-get install ssmtp
gnu/linux : yum install ssmtp
2)edit the file /etc/ssmtp/ssmtp.conf with your favourite editor.
Add the following lines at the end.
AuthUser=youremailaddress(senders adress)
AuthPass=email password
FromLineOverride=Yes
mailhub=smtp.gmail.com
Use STARTTLS=YES
save & quit!
3)To sent an email, type this on the terminal
echo "This is a test mail' | mail -s "hello" receiptemailaddress@gmail.com
tell2humanlinux@gmail.com
No comments:
Post a Comment