{"id":1482,"date":"2010-02-08T01:30:57","date_gmt":"2010-02-08T07:30:57","guid":{"rendered":"http:\/\/gregsowell.com\/?p=1482"},"modified":"2010-02-01T12:32:39","modified_gmt":"2010-02-01T18:32:39","slug":"send-yourself-emails-via-a-scriptcron-that-attaches-a-file","status":"publish","type":"post","link":"https:\/\/gregsowell.com\/?p=1482","title":{"rendered":"Send Yourself Emails Via a Script\/Cron That Attaches a File &#8211; Linux"},"content":{"rendered":"<p>I&#8217;m using a nice little utility called mutt.<\/p>\n<p>To get this guy installed and you are running CentOS, use:<\/p>\n<pre class=\"gs-code\"><code class=\"language-plaintext\">yum install mutt<\/code><\/pre>\n<p>To send yourself an email with an attachement and no text:<\/p>\n<pre class=\"gs-code\"><code class=\"language-plaintext\">mutt -a \/tmp\/BackupFile.tar -s &quot;Your backup&quot; MyEmail@MyDomain.com &lt; \/dev\/null<\/code><\/pre>\n<p>To send the same file but with text try this:<\/p>\n<pre class=\"gs-code\"><code class=\"language-plaintext\">mutt -a \/tmp\/BackupFile.tar -s &quot;Your backup&quot; MyEmail@MyDomain.com &lt;  \/tmp\/TextForEmail.txt<\/code><\/pre>\n<p>This <a href=\"http:\/\/www.shelldorado.com\/articles\/mailattachments.html\">site<\/a> has some good info on mutt and the mail command.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;m using a nice little utility called mutt. To get this guy installed and you are running CentOS, use: yum install mutt To send\u2026<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14,13],"tags":[],"class_list":["post-1482","post","type-post","status-publish","format-standard","hentry","category-linux","category-server"],"_links":{"self":[{"href":"https:\/\/gregsowell.com\/index.php?rest_route=\/wp\/v2\/posts\/1482","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/gregsowell.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/gregsowell.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/gregsowell.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/gregsowell.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1482"}],"version-history":[{"count":6,"href":"https:\/\/gregsowell.com\/index.php?rest_route=\/wp\/v2\/posts\/1482\/revisions"}],"predecessor-version":[{"id":1488,"href":"https:\/\/gregsowell.com\/index.php?rest_route=\/wp\/v2\/posts\/1482\/revisions\/1488"}],"wp:attachment":[{"href":"https:\/\/gregsowell.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1482"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gregsowell.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1482"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gregsowell.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1482"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}