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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

outlook call from vbs

Status
Not open for further replies.

elly00

Technical User
Jun 30, 2011
69
0
0
IT
Hi,
i've a vbs file that call outlook message and attach a pdf file..
All worked good until i've installed Office365 :(

Muy code is:
out=createobject("outlook.application")
set namespace=out.getnamespace("mapi")
set mail=out.createitem(0)

mail.to="aaa@aaa.it"
mail.HTMLBody=MyHTML
mail.subject="TEST"

May be that outlook.application doesn't work anymore with this version of outlook..
Do you know how can I modify it in order to get it work?

THANKSSSSSSSSSSSSSSSSSSSSSSS

 
Hi,

Code:
[b]Set[/b] out=createobject("outlook.application")

Skip,
[sub]
[glasses]Just traded in my OLD subtlety...
for a NUance![tongue][/sub]
 
Hi,

yes yes it was already like that


set out=createobject("outlook.application")
set namespace=out.getnamespace("mapi")
set mail=out.createitem(0)

May be this statement could have some problems with office 365?
 
At what point does it fail? What is the error message?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top