Problem sending message into outlook

  • Thread starter Thread starter Tom Andrecht
  • Start date Start date
T

Tom Andrecht

I need to send a message into Outlook from a third party program that
automatically sets up the subject line and inserts text into the body of the
message. I'm using Delphi's ShellExecute command which just sends a message
to Windows and lets Windows handle it. However, when I do this, it removes
my signature text which I need and just puts the new text in instead. I
tried telling the message window to add my signature, but that option is
grayed out. Does anyone know how I can get both the new text and the
signature in without having to load the signature into my program or read it
in inside my program? Thanks

Tom
 
Not really Outlook related but you might want to post to an Outlook
programming group for assistance.

--
Milly Staples [MVP - Outlook]

Post all replies to the group to keep the discussion intact. All
unsolicited mail sent to my personal account will be deleted without
reading.

After furious head scratching, Tom Andrecht asked:

| I need to send a message into Outlook from a third party program that
| automatically sets up the subject line and inserts text into the body
| of the message. I'm using Delphi's ShellExecute command which just
| sends a message to Windows and lets Windows handle it. However, when
| I do this, it removes my signature text which I need and just puts
| the new text in instead. I tried telling the message window to add
| my signature, but that option is grayed out. Does anyone know how I
| can get both the new text and the signature in without having to load
| the signature into my program or read it in inside my program? Thanks
|
| Tom
 
You'll never get a signature with ShellExecute. If you want a signature, you'll need to create the message with Outlook objects, display the message, and only then append your text to the body (which at that point will contain your autosignature).

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

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