View Single Post
  #1  
Old November 22nd 07, 05:00 AM posted to microsoft.public.outlook.program_vba
MA[_2_]
external usenet poster
 
Posts: 47
Default Access MaiItem.UserProperties using Redemption

Hi,

I am using the Redemption to create a message. I need to add the user
defined fields to the message.

I know the Outlook.MaiItem has the UserProperties which allow to add
field and optionally attach to the folder. However, UserProperties not
available in Redemption.

How can I access the UserProperties from the RDOMail?

--------------------------------------------
// Get the RDOFolder
session.MAPIOBJECT = olApp.Session.MAPIOBJECT;
RDOFolder rdoFolder = session.GetFolderFromPath(@"\\Bob Builder
\Inbox");

// Create the message
RDOMail msg = rdoFolder.Items.Add("IPM.Note.CRM");
msg.Sent = true;
msg.Subject = String.Format("Test sent message: {0}", DateTime.Now);
RDORecipient recipient = ");
recipient.Resolve(false, null);
msg.Sender = session.CurrentUser;
msg.SentOn = Convert.ToDateTime("2007/09/10",
System.Globalization.CultureInfo.CurrentCulture);
msg.Body = "Test message body";
msg.Save();
---------------------------------------------

Thanks for looking at the issue.

Regards,
MA
Ads