二、然后编写发送邮件的函数:
21/**///// <summary>22/// 邮件发送方法(带附件)
23/// </summary>
24/// <param name="mailto">收件人地址。如:receiver@163.com </param>
25/// <param name="mailsubject">邮件标题 </param>
26/// <param name="mailbody">邮件正文 </param>
27/// <param name="mailFrom">邮件发送人地址。如:sender@163.com </param>
28/// <param name="list">附件路径 </param>
29/// <returns> </returns>
30public bool MySendMail(string mailto, string mailsubject, string mailbody, string mailFrom, ArrayList list)
31{
32 try
33 {