mail.From = new MailAddress(from, fromuser); mail.Subject = "dsfdsf"; mail.Body ="sdfsdf"; mail.Priority = pri; SmtpClient cliect = new SmtpClient(smtpserver); cliect.Timeout = Convert.ToInt32(timeout); cliect.Port = Convert.ToInt32(smtpport); cliect.DeliveryMethod = SmtpDeliveryMethod.Network; cliect.Credentials = new System.Net.NetworkCredential(smtpuser, smtppass); cliect.UseDefaultCredentials = true; cliect.EnableSsl =true; cliect.Send(mail);
添加回答
举报
0/150
提交
取消