我可以讓Web應用程序使用Windows Task Scheduler發送自動電子郵件?,F在,我想使用我編寫的用于發送電子郵件的以下方法發送HTML格式的電子郵件。我的后臺代碼:protected void Page_Load(object sender, EventArgs e) { SmtpClient sc = new SmtpClient("mail address"); MailMessage msg = null; try { msg = new MailMessage("[email protected]", "[email protected]", "Message from PSSP System", "This email sent by the PSSP system"); sc.Send(msg); } catch (Exception ex) { throw ex; } finally { if (msg != null) { msg.Dispose(); } } }怎么做?我只想在電子郵件中放一些帶有一個鏈接的粗體文本,也許還有一張圖像。
- 3 回答
- 0 關注
- 1250 瀏覽
添加回答
舉報
0/150
提交
取消