%this whole props section I stole from somewhere, it deals with the email connection
props = java.lang.System.getProperties;
props.setProperty('mail.smtp.auth','true');
props.setProperty('mail.smtp.socketFactory.class', 'javax.net.ssl.SSLSocketFactory');
% can change this to port 25, 587, 995 based on server properties
props.setProperty('mail.smtp.socketFactory.port','465');

setpref('Internet','E_mail','***********@gmail.com'); %this sets up email information
setpref('Internet','SMTP_Username','**********');
setpref('Internet','SMTP_Password','**********');


sendmail('**********@txt.att.net','',message) %sends out the message