Advertisement
Guest User

Untitled

a guest
Mar 19th, 2019
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. From: Company Name <example@nowhere.com>
  2. To: recipient@madeup.com
  3. CC: someoneelse@place.com
  4. Subject: Generated Output
  5.  
  6. Mime-Version: 1.0
  7.  
  8. This will be the body copy even though it's terrible
  9.  
  10. # /usr/sbin/sendmail -t < emailfile.eml
  11.  
  12. echo "This is the message body" | mutt -a "/path/to/file_to_attach" -s "subject of message" -- recipient@domain.com
  13.  
  14. mail -a /opt/emailfile.eml -s "Email File" user@example.com < /dev/null
  15.  
  16. sendemail -t to@example.com -m "Here is the file." -a attachmentFile
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement