Skip to content

Instantly share code, notes, and snippets.

@benjaesq
Last active August 29, 2015 14:23
Show Gist options
  • Save benjaesq/a59f2f23c85ac28a56f9 to your computer and use it in GitHub Desktop.
Save benjaesq/a59f2f23c85ac28a56f9 to your computer and use it in GitHub Desktop.
alias compose mailx
# Usage: mailx <to-address>
# Will prompt for Subject
# Then compose the message and Ctr-D to send
# Requires previous setting of EMAIL_ADDRESS AND SMTP_SERVER
alias cmailx='mailx -b $EMAIL_ADDRESS -r $EMAIL_ADDRESS -S smtp=$SMTP_SERVER'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment