我有一個頁面,我發送電子郵件爆炸。該頁面工作併發送電子郵件。然而,當IA嘗試添加電子郵件地址,包括作爲的replyTo收件人我收到此錯誤:asp.net的郵件信息無法做replytolist.add
'System.Net.Mail.MailMessage' does not contain a definition for 'ReplyToList' and no extension method 'ReplyToList' accepting a first argument of type 'System.Net.Mail.MailMessage' could be found (are you missing a using directive or an assembly reference?)
我使用此代碼:
mailMessage.ReplyToList.Add(「[email protected]」 );
這適用於 mailMessage.CC.Add(「[email protected]」); mailMessage.bcc.Add(「[email protected]」); 等
謝謝
你的目標是什麼框架版本? – SLaks
.net framework 3.5 –