Advertisement
Guest User

Untitled

a guest
Jul 9th, 2015
247
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. recipients="user1@abc.com, user2@abc.com, user3@abc.com"
  4. subject="TEST"
  5. from="TEST@abc.com"
  6.  
  7. message_txt="TEST"
  8.  
  9. /usr/sbin/sendmail "$recipients" << EOF
  10. subject:$subject
  11. from:$from
  12. $message_txt
  13. EOF
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement