发送邮件直接写附件路径报错
System.Web.Mail.MailAttachment   myAttach=new   System.Web.Mail.MailAttachment(@ "C:\images\gamepic_10004.jpg "); 
 			mailMessage.Attachments.Add(myAttach); 
 点击上传时,报错——如下: 
 Object   reference   not   set   to   an   instance   of   an   object.    
 但是直接用HtmlInputFile进行选择上传就可以上传成功,请问是怎么回事?如何解决直接填写附件路径的功能?
------解决方案--------------------先把附件上传到服务器  再写服务器上保存的路径