Automating emails and importance / color

  • Thread starter Thread starter komobu
  • Start date Start date
K

komobu

Hi;

I have a program that sends out automatic emails to company personnel
use OLE. My basic code looks like this:

m = new OLEAutoClient("Outlook.Application")
item = m.CreateItem(0)
item.to = 'John.smith
item.subject = database field
item.body = 'Reminder'
item.send()

I would really like to adjust the subject color to red or to set a flag
based on importance. Please describe what item.commands are needed for
me to accomplish this. Example code would be most welcome.

Thanks
Pat
 
Set a flag using the FlagDueBy, FlagRequest, and FlagStatus properties.

FYI, there is a newsgroup specifically for general Outlook programming issues "down the hall" at microsoft.public.outlook.program_vba or, via web interface, at http://www.microsoft.com/office/community/en-us/default.mspx?dg=microsoft.public.outlook.program_vba

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
Back
Top