Create Mailitem with CDO (set from Address )
- From: "Waldemar Thometzek" <waldemar.thometzek@xxxxxxxxxxxxxx>
- Date: Fri, 16 Mar 2007 11:44:00 +0100
Hello,
i want to create a mailitem in den inbox Folder with cdo.
my code:
Set objCDO = Application.CreateObject("MAPI.Session")
objCDO.Logon "", "", False, False, 0
Set objMessage = objCDO.inbox.messages.Add
objMessage.timereceived = "01.01.2000"
objMessage.timesent = "01.10.2001"
objMessage.Text = "TEST1234"
objMessage.Subject = "Betreff"
Set oRecips = objMessage.Recipients
Set oRecip = oRecips.Add("test1@xxxxxxxx", , MAPI.CdoRecipientType.cdoTo)
Set oRecip = oRecips.Add("test2@xxxxxxxx", , MAPI.CdoRecipientType.cdoTo)
oRecips.Resolve (True)
objMessage.UnRead = True
objMessage.Update
my problem is to define the from Address.
Please help me
Thanks
Waldemar
- Prev by Date: Re: Webdav htmldescription tag missing from response
- Next by Date: Re: OWA Unable to logon either on WAN or LAN
- Previous by thread: Re: Webdav htmldescription tag missing from response
- Next by thread: Re: OWA Unable to logon either on WAN or LAN
- Index(es):
Relevant Pages
|