{"id":783,"date":"2017-06-15T12:10:09","date_gmt":"2017-06-15T17:10:09","guid":{"rendered":"http:\/\/www.thedarktimes.us\/wordpress\/?p=783"},"modified":"2017-06-15T12:10:09","modified_gmt":"2017-06-15T17:10:09","slug":"send-email-attachment-from-linux-command-line","status":"publish","type":"post","link":"https:\/\/www.thedarktimes.us\/wordpress\/uncategorized\/send-email-attachment-from-linux-command-line\/%20","title":{"rendered":"Send Email Attachment from Linux Command Line"},"content":{"rendered":"<p>Now its time to send an email attachment using mail command a shown.<\/p>\n<pre>$ echo <strong>\"Message Body Here\"<\/strong> | mail -s <strong>\"Subject Here\"<\/strong> user@example.com -A backup.zip\r\n<\/pre>\n<p>In the above command, the flag:<\/p>\n<ol>\n<li><code>-s<\/code> \u2013 specifies the message subject.<\/li>\n<li><code>-A<\/code> \u2013 helps to attach a file.<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>Now its time to send an email attachment using mail command a shown. $ echo &#8220;Message Body Here&#8221; | mail -s &#8220;Subject Here&#8221; user@example.com -A backup.zip In the above command, the flag: -s \u2013 specifies the message subject. -A \u2013 helps to attach a file.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-783","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/www.thedarktimes.us\/wordpress\/wp-json\/wp\/v2\/posts\/783","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.thedarktimes.us\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.thedarktimes.us\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.thedarktimes.us\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.thedarktimes.us\/wordpress\/wp-json\/wp\/v2\/comments?post=783"}],"version-history":[{"count":1,"href":"https:\/\/www.thedarktimes.us\/wordpress\/wp-json\/wp\/v2\/posts\/783\/revisions"}],"predecessor-version":[{"id":784,"href":"https:\/\/www.thedarktimes.us\/wordpress\/wp-json\/wp\/v2\/posts\/783\/revisions\/784"}],"wp:attachment":[{"href":"https:\/\/www.thedarktimes.us\/wordpress\/wp-json\/wp\/v2\/media?parent=783"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.thedarktimes.us\/wordpress\/wp-json\/wp\/v2\/categories?post=783"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.thedarktimes.us\/wordpress\/wp-json\/wp\/v2\/tags?post=783"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}