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

Outlook Mail item parts

Status
Not open for further replies.

DChalom

Programmer
Jun 8, 2002
59
US
How do you know all the diferent properties of an Outlook email?

Dorian C. Chalom
 
Are you just trying to send an email?
Or are you looking for something else?

This is what I use to send.

o=createobject("Outlook.Application")
oitem=o.createitem(0)
oitem.subject="My Subject"
oitem.to=useremail
oitem.bcc=xemail
oitem.body=xmessage
oitem.Attachments.Add(filename)
oitem.send
o=.null.

Jim
 
I am looking to recieve emails and i need to know how to disect the different parts.

Dorian C. Chalom
 
This goes to the inbox.

oa = CREATEOBJECT("Outlook.Application")
mynamespace = oa .GetNameSpace("MAPI")
myfolder = mynamespace.GetDefaultFolder(6) && 6 = INBOX
myitem = myfolder.Items(1)

?myitem.to
?myitem.subject
?myitem.body


Jim
 
Hi Dorian.

Following Jim's advice in the command window, in version 7 and later you can use intelliSense to see what the properties and methods of the item are.

You can also explore the Outlook object model in the Object Browser.



Marcia G. Akins
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top