We are migrating from one Unix server to another.Old server
$ uname -a Linux <redacted> 2.6.9-89.31.1.ELsmp #1 SMP Mon Oct 4 21:53:22 EDT 2010 i686 i686 i386 GNU/Linux
$ uname -a Linux <redacted> 2.6.32-504.30.3.el6.x86_64 #1 SMP Thu Jul 9 15:20:47 EDT 2015 x86_64 x86_64 x86_64 GNU/Linux
When using the below command, mails were sent as HTML content in the old server, but the same command on the new server is only sending plain emails.
- What are my options here?
- what can I do to make this work?
$ echo "<b>HTML Message <i>goes</i> here</b>" | mail -s "$(echo -e "This is the subject\nContent-Type: text/html")" -email@example.com firstname.lastname@example.org