利用网易免费短信提醒功能
%%%%%%%%%%%
MailAddress = '136XXXXXXXX@126.com';%手机邮箱地址
password = 'XX'; %密码
setpref('Internet','E_mail',MailAddress);%照抄吧
setpref('Internet','SMTP_Server','smtp.126.com');%SMTP服务器
setpref('Internet','SMTP_Username',MailAddress);%照抄
setpref('Internet','SMTP_Password',password);%照抄
props = java.lang.System.getProperties;%照抄
props.setProperty('mail.smtp.auth','true');%照抄
sendmail(MailAddress,subject,content);%提醒的是自己,直接用自己的手机邮箱
subject和content就是邮件的主题和内容,发过E-mail的都知道吧。
%%%%%%%%%%%
PS:sendmail('X',subject,content);其实这个函数还有输入参数1sendmail('X',subject,content,address);address 是你附件的详细地址 这样后就可以带附件..