Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

URGENT --read Mail on VBS -- Thanks

Status
Not open for further replies.

glmrenard

Technical User
Oct 29, 2002
52
FR
Hello everybody,


Well, I need to read a mail from a user (in fact, the last mail of all my user (the date of arrival of this mail by exemple). I know the admin password.
But I don't know VB, I think it's possibel, but I don' know how.
Please help...
I can use either VB 6.0 or I can do a vbscript but I really need help.
With my login : OK
"""""""""
Private Sub Form_Load()
Set oSession = CreateObject("MAPI.Session")
oSession.logon "satanas" & vbLf & "g-renard", "my_password", False, True, -1, True, "satanas" & vbLf & "g-renard"
MsgBox (oSession.CurrentUser.Address)
End Sub
I see : /o=Arte /ou=Strasbourg /cn=Recipients /cn=G-Renard
""""""""""""
With the admin login : Error
..
oSession.logon "satanas" & vbLf & "Admin Exchange", "password", False, True, -1, True, "satanas" & vbLf & "Admin Exchange"
..
The error:
Not the permission to open a session MAPI_E_FAILONEPROVIDER(8004011D)

Is it a profile Problem (I have two profile : Arte and Admin and If so, How can I resolve my problem.

Thanks in advance !

Guillaume
 
glmrenard,

Try this free Active X control I found.
It is fabulous. Sends snd receives email, bulk or single.
Has options for setting up mailing from and to users of your application.
Also has cc and blind cc features.
And it's free.


vbSendMail.dll version 3.65

It can be found at
Hope this helps.
Regards,
Dwight
 
Hello,

Thanks for your help but... It's not really what I need. So I will continue my research but if you have any idea ...

Best Regards,

Guillaume
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top