返回顶部

收藏

C#中通过SSL发送邮件

更多
MailMessage m = new MailMessage
   ("item@outofmemory.cn",
    "raja@outofmemory.cn",
    "This is the subject for the authorized email.",
    "This is the body of the authorized mail!...");

// Send the message using authorization
SmtpClient client = new SmtpClient("smtp.outofmemory.cn");
client.Credentials = new NetworkCredential("user", "password");
client.EnableSsl = true;
client.Send(m);

标签:SSL,smtp,发送邮件

收藏

0人收藏

支持

0

反对

0

发表评论