{"id":1159,"date":"2014-09-30T17:36:16","date_gmt":"2014-10-01T00:36:16","guid":{"rendered":"http:\/\/jim-zimmerman.com\/?p=1159"},"modified":"2014-09-30T17:36:16","modified_gmt":"2014-10-01T00:36:16","slug":"mail-command-modify-the-from-address","status":"publish","type":"post","link":"https:\/\/jim-zimmerman.com\/?p=1159","title":{"rendered":"mail command &#8211; modify the From address"},"content":{"rendered":"<p>Here is how you can send an email message from linux command line and use a different from address.  This is useful in scripts that run as a user that would not necessarily manage the process or even look at or care about the email.    <\/p>\n<blockquote><p>$ mail -s &#8220;Test Subject&#8221; me@mydomain.com &#8212; -f donotreply@mydomain.com -F &#8216;&#8221;Do Not Reply&#8221; <donotreply@mydomain.com>&#8216; < someinputfile<\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>Here is how you can send an email message from linux command line and use a different from address. This is useful in scripts that run as a user that would not necessarily manage the process or even look at or care about the email. $ mail -s &#8220;Test Subject&#8221; me@mydomain.com &#8212; -f donotreply@mydomain.com -F [&#038;hellip<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[385,48,284],"class_list":["post-1159","post","type-post","status-publish","format-standard","hentry","category-documentation","tag-command","tag-linux","tag-mail"],"share_on_mastodon":{"url":"","error":""},"_links":{"self":[{"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/posts\/1159","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1159"}],"version-history":[{"count":1,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/posts\/1159\/revisions"}],"predecessor-version":[{"id":1160,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/posts\/1159\/revisions\/1160"}],"wp:attachment":[{"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1159"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1159"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1159"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}