Programmatically populating an email but allowing user opportunity to edit

  • Thread starter Thread starter zulu113cep
  • Start date Start date
Z

zulu113cep

Hello all,

My application has a requirement to send emails containing different
internal data via email. It is easy to construct and send this email
entirely programmatically. However there is now a requirement that the
user should have the opportunity to edit the email before it is sent.

Ideally, I'd like to have the autogenerated email appear in the outlook
editor, with the body, subject, recipients and attachments already
present. The user could then verify/modify the contents, hit send, and
life goes on and the world is happy.

I've looked at ways of autopopulating this data via the command line
(outlook.exe doesn't seem very flexible as far as command line options
doing all of the above at once). I've also used basic CDO to construct
and send emails with no user interaction. However, I am no expert, and
would appreciate any advice or a kind nod in the right direction from
someone who has done similar.

thanks in advance,
Chuck
(e-mail address removed)
 
If you want to display the message to the user, then you need to use Outlook objects to create it and conclude your code with a MailItem.Display statement.

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

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