You need to have ssmtp and mutt installed. /etc/ssmtp/ssmtp.conf root=sasha@e-mail.ua mailhub=smtp.gmail.com:587 rewriteDomain= hostname=sasha@e-mail.ua UseSTARTTLS=YES AuthUser=sashao@e-mail.ua AuthPass=somepass FromLineOverride=YES /etc/ssmtp/revaliases root:sasha@e-mail.ua:smtp.gmail.com:587 oomel:sasha@e-mail.ua:smtp.gmail.com:587 #localusername:username@gmail.com:smtp.gmail.com:587 ~/.muttrc set sendmail = /usr/sbin/ssmtp unset record Done! Now send mails like this: echo "m body of email" | mutt -s "subject of email" sashao@bigmir.net -a /home/oomel/softserve.gif