code_junkie

Specify the from user when sending email using the mail command

Nov 11th, 2011
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.16 KB | None | 0 0
  1. $mail -s "Subject" [email protected]
  2. From: Joel <[email protected]>
  3.  
  4. Hi!
  5. .
  6.  
  7. $mail -s "Some random subject" -a "From: [email protected]" [email protected]
Add Comment
Please, Sign In to add comment