本文介绍了从asp.net发送邮件到邮件帐户的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

mm.From =新MailAddress(fromtext.Text);
mm.To.Add(新MailAddress(ToText.Text));
mm.Subject = SubjectText.Text;
mm.Body = MessageText.Text;
我遇到这样的错误.任何人都可以采取哪些措施来消除这些错误.
错误是2该名称在当前上下文中不存在

mm.From = new MailAddress(fromtext.Text);
mm.To.Add(new MailAddress(ToText.Text));
mm.Subject = SubjectText.Text;
mm.Body = MessageText.Text;
I am getting errors like this.can anyone what should be done to remove these erors.
error is 2 The name does not exist in the current context

推荐答案


这篇关于从asp.net发送邮件到邮件帐户的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-23 23:53