| 发表于:2007-06-22 09:20:032楼 得分:10 |
首先你要保证你的邮件服务器能发送邮件到163.com, 第二,在代理中写如下代码 sub sendmail() dim ndb as notesdatabase dim ndoc as notesdocument dim nbody as notesrichtextitem dim ns as new notessession set ndb=ns.currentdatabase() set senddoc=db.createdocument() set nbody=new notesrichtextitem(senddoc, "body ") call nbody.appendtext( "i am papa ") call ndoc.embedobject( "c:\imurpapa ") call senddoc.send(false) senddoc.subject= "test agent sendmail " set nbody=nothing set ndoc=nothing set ndb=nothing set nsession=nothing end sub | | |
|