Emailing an alert that a model run is complete in Cube Voyager
March 6th, 2011When you are doing many model runs, it makes life easier to know if the modelrun is complete. Â The code is below.
SENDMAIL,
SMTPSERVER='MAILSERVER HERE',
FROM='from@somwehere.com',
TO='to@somewhere.com',
SUBJECT='Subject Line Here',
MESSAGE='Message Goes Here',
USERNAME='username',
PASSWORD='password'
The things you replace here are pretty obvious. Â If you have questions about the SMTPSERVER parameter, ask your IT person. Â Also, for Windows domains, the USERNAME parameter should be ‘DOMAIN\USERNAME’ (you may be able to use your email address, depending on your email setup).