发送电子邮件
| SendMail["To"->address,"Subject"->subj,"Body"->text] | 发送基本电子邮件信息 |
| SendMail[...,"Body"->{expr1,expr2,...}] | 发送任意 Mathematica 表达式 |
| SendMail[...,"Attachments"->file] | 发送具有文件附件的消息 |
下面的例子要求默认邮件账户设置已经在 偏好设置 对话框的 网络连接 ► 邮件设置 制表符中得到配置.
| In[1]:= |
| Out[1]= |
| In[2]:= |
| Out[2]= |
| In[3]:= |
| Out[3]= |
用户也可以在电子邮件体中发送任意 Mathematica 表达式. SendMail 自动把表达式转化为合适的文件格式,并且把它们作为附件添加到电子邮件中(如果可能的话,直接插入).
| In[4]:= |
| Out[4]= |



