| 发表于:2007-06-10 11:57:52 楼主 |
mailmessage mail = new mailmessage(); mail.to = "lmh@126.com "; mail.bcc = "vodff@126.com "; mail.from = "vodff@126.com "; mail.bodyformat = mailformat.text; mail.subject = "subject of this email " + system.datetime.now.tostring(); mail.body = "body of this message. "; smtpmail.smtpserver= "smtp.126.com "; mail.fields.add( "http://schemas.microsoft.com/cdo/configuration/smtpauthenticate ", "1 "); mail.fields.add( "http://schemas.microsoft.com/cdo/configuration/sendusername ", "vodff "); mail.fields.add( "http://schemas.microsoft.com/cdo/configuration/sendpassword ", "1111 "); smtpmail.send(mail); 这样发不出去。有错误。 什么问题亚?是不是windwos的smtp要设置什么东西? |
|
|
|
|