Saturday, April 15, 2017

Mailx commands in linux

$ echo "Message Body Here" | mailx -s "Subject Here" -a path-of-the-file-to-attach

$ echo 'These are contents of my mail' | mailx -s 'This is my email subject' -a /path/to/attachment_file.log

$ mailx -s "Sending Files" -a First_LocalConfig.conf -a Second_LocalConfig.conf

s : subject name of the mail
a : path of the files to be attached to the mail

No comments:

Post a Comment

Perfect order of ODI export and import

  Smart Export / Import is the recommended way to achieve such a migration. This is the easiest way to make sure all the dependencies are ta...