1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
| function SentMail(receiver, mailtitle, mailcontent, attachments)
mail = '[email protected]'; password = '****';
setpref('Internet', 'E_mail', mail); setpref('Internet', 'SMTP_Server', 'smtp.163.com'); setpref('Internet', 'SMTP_Username', mail); setpref('Internet', 'SMTP_Password', password); props = java.lang.System.getProperties;props.setProperty('mail.smtp.auth', 'true'); props.setProperty('mail.smtp.socketFactory.class', 'javax.net.ssl.SSLSocketFactory'); props.setProperty('mail.smtp.socketFactory.port', '465');
sendmail(receiver, mailtitle, mailcontent, attachments); end
|