Emailing from Maya. (.mel)
I have a bunch of scripts setup to do lightmaps… of course they can take awhile. Also I would like to know when they are done. So I went online and found a nice command line emailer…
Postie.exe
http://www.download.com/Postie/3000-2369_4-6935052.html?tag=lst-0-1
After installing to the default location. c:/postie/
I setup the .mel to use it.
global proc mayaEmail(string $mailServer, string $to, string $from, string $msg)
{
string $progPath = “c:/postie/postie.exe”;
string $cmd = ($progPath+ ” -host:”+$mailServer+” -to:”+$to+” -from:”+$from+” -msg:”+$msg);
system($cmd);
print $cmd;
}
Example Use:
mayaEmail(”mail.test.com”, “test@test.com” , “Maya@test.com” , “\”Your Lightmap Is Done…\”");
Simple as that. Of course if you change the path where Postie is installed you are gonna have to point the $progPath Variable to where it is located.