PC Review


Reply
Thread Tools Rate Thread

Automating emails and importance / color

 
 
komobu
Guest
Posts: n/a
 
      30th Jul 2006
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

 
Reply With Quote
 
 
 
 
Sue Mosher [MVP-Outlook]
Guest
Posts: n/a
 
      22nd Aug 2006
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/comm...ok.program_vba

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"komobu" <(E-Mail Removed)> wrote in message news:(E-Mail Removed)...
> 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
>

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I foward emails with high importance tiredoldman Microsoft Outlook 2 13th Nov 2007 12:03 AM
How can I set an importance level (!'s) on mail merged emails? =?Utf-8?B?SmFtZXMgQnJvY2ttYW4=?= Microsoft Outlook Discussion 0 22nd May 2006 10:05 PM
Is there a way to highlight words of importance with color in Outl =?Utf-8?B?Tm9lbA==?= Microsoft Outlook Discussion 1 28th Apr 2006 10:21 PM
Problems with setting the importance of my emails Aric Microsoft Outlook 2 12th Jan 2004 07:40 PM
Problems with setting the importance of my emails Aric Microsoft Outlook Discussion 2 12th Jan 2004 07:40 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:36 PM.