1 2 3 4 5 6 7 8 9 10 |
System.Net.Mail.SmtpClient sc = new System.Net.Mail.SmtpClient(); SetSMTPServer(ref sc); string strfromMail = "送信元メールアドレス"; string strSenderMail = "送信先メールアドレス"; string strSubject = "件名"; string strBody = "本文"; sc.Send(strfromMail, strSenderMail, strSubject, strBody); |
コメント