automatically print sent e-mail

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

For outlook 2003 does anyone have any code to print the e-mail on sending the
e-mail.

Whilst I have it to set to print out before the send automatically I would
prefer it to print out after the send but before the e-mail closes so that it
has the date and timestamp on it.
 
This isn't as easy as it sounds, unfortunately. Even if you get a handle to
the MailItem object and capture the Send event, sender info and time stamp
info is not accessible via the Object Model until after the e-mail is
completely sent. At this point, the MailItem object would be dereferenced
anyway. If you save copies of sent messages to the Sent Items folder, you'd
have to get a handle to the one you just sent by searching for the same
Subject line (try the Restrict method on the Sent Item folder's Items
collection), then once you find it call MailItem.PrintOut.
 
Back
Top