这个问题好像很难,都不会,高手进来看看!
通过OutLook2002自动发信,每次操作时Outlook都会跳出一个对话框,“A program is trying to automatically send e-mail using a Microsoft on your behalf. Do you want to allow this?”
因此每次都要手工点击“yes"才能继续。
如何去掉呢?
我找了资料说下面这样写就可以了
Set ol = CreateObject("Outlook.Application")
Set Session = ol.Session
Set AL = ol.Session.AddressLists("Global Address List")
Set AE = AL.AddressEntries(1)
MsgBox AE.Address
可执行『Set Session = ol.Session 』这句通不过吖。
怎么办?
或看
http://expert.csdn.net/Expert/topic/2576/2576979.xml?temp=.0393793