smtp_send.pl
A long time ago, I had modified a script written by Scott Herald @ vmguru.com that sends email from the service console. A while back Scott reworked his website and all of the downloads are gone. I intended to put it up here and forgot. Today I saw a post from Duncan Epping @ http://www.yellow-bricks.com/ that reminded me.
Duncan is hosting the script which is cool. I will also stick it here for when he decides to redo his site.
This is Duncan’s modified version which changes the MIME type from TEXT to TEXT/HTML. I would guess that is fine for everyone (plain text or html).
smtp_send.pl sends mail from ESX 2.x or ESX 3.x. It does require Lite.pm to be placed in
/usr/lib/perl5/5.8.0/MIME/, or whatever your version of perl is (ESX 2.x is 5.6.1). Also, don’t forget to open outbound 25/tcp in your service console firewall.
You can upload the file to your ESX host, /usr/local/bin is a good spot and run smtp_send.pl with no switches to see the command line options.
Download smtp_send.pl (628) here.