{"id":273,"date":"2012-10-10T06:41:37","date_gmt":"2012-10-10T06:41:37","guid":{"rendered":"http:\/\/scunster.co.uk\/?p=273"},"modified":"2012-11-25T20:03:08","modified_gmt":"2012-11-25T20:03:08","slug":"send-email-from-command-line","status":"publish","type":"post","link":"https:\/\/scunster.co.uk\/?p=273","title":{"rendered":"Send Email From linux terminal using SSMTP"},"content":{"rendered":"<p>How to send email from the terminal using SSMTP<!--more--><br \/>\n<strong><\/strong><\/p>\n<ul>\n<li><strong>Edit the ssmtp config file :<\/strong> <code>gksu gedit \/etc\/ssmtp\/ssmtp.conf<\/code><\/li>\n<li><strong>Enter this in the file:<\/strong><br \/>\nroot=username@gmail.com<br \/>\nmailhub=smtp.gmail.com:465<br \/>\nrewriteDomain=gmail.com<br \/>\nAuthUser=username<br \/>\nAuthPass=password<br \/>\nFromLineOverride=YES<br \/>\nUseTLS=YES<\/li>\n<li><strong>Enter the email address of the person who will receive your email:<\/strong><code>ssmtp recepient_name@gmail.com<\/code><\/li>\n<li><strong>Now enter this:<\/strong><br \/>\nTo: recipient_name@gmail.com<br \/>\nFrom: username@gmail.com<br \/>\nSubject: Sent from a terminal!<\/li>\n<li><strong>To send the email<\/strong>: <kbd>Ctrl<\/kbd> + <kbd>D<\/kbd><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>How to send email from the terminal using SSMTP<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[131],"tags":[],"class_list":["post-273","post","type-post","status-publish","format-standard","hentry","category-ubuntu-linux"],"_links":{"self":[{"href":"https:\/\/scunster.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/273","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/scunster.co.uk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/scunster.co.uk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/scunster.co.uk\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/scunster.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=273"}],"version-history":[{"count":5,"href":"https:\/\/scunster.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/273\/revisions"}],"predecessor-version":[{"id":443,"href":"https:\/\/scunster.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/273\/revisions\/443"}],"wp:attachment":[{"href":"https:\/\/scunster.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=273"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/scunster.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=273"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/scunster.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=273"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}