how to edit mail message

  • Thread starter Thread starter Ram
  • Start date Start date
R

Ram

Hi,

I need to edit the mail message. What i meant is, i have written a
mail(which is HTML format). When i am sending ,my add-in has to make
necessary changes in that mail. how can i do that in using COM Add-ins.

How can i create new mail message programitcally.

--
Regards,

RamakoteswaraRao Koti
Software Engineer,
Nannacomputers Pvt Ltd
 
Use the Application.ItemSend event to modify the message being sent (it will
be passed as a parameter to your event handler).

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
 
hi,

Thanks for your response,

i need to edit the message before that was sent .Plz tell me
clearly, how can do that.
 
What do you mean by "before"? Before the inspector (where you type the
e-mail) is closed? Or after it is closed but before its is submitted?
Did you try to use the Application.ItemSend event?
You need to be a lot more detailed: what is the programming language? What
did you try already? Did you check http://www.outlookcode.com to see if
there are any code samples that you can use?

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
 
Hi,

i am using vc++ . and i want to add the some info at the bottom
of the message before that message has been sent. But it has to happened to
after user click the send button. How can i solve this.

One more thing is, i have my sign(it is scanned image, and it is
in jpg format), when i click userdifned button(the commandbarbutton which is
created by) then that image has to emdedd into my message. Message is in
HTML format. how can i do this.

i am using vc++, can u suggest me how can i solve this by
using vc++
 
1. Use the Application.ItemSend event to modify the MailItem object passed
to your event handler
2. Read the MailItem.HTMLBody property to insert the image orr use
Inspector.HTMLEditor (returns IHTMLDocument2) to modify the HTML body using
DOM.
The image tag must refer to the image attachment using <img
src="cid:some_value"> source, where "some_value" is the value of the
PR_ATTACH_CONTENT_ID property - see
http://www.outlookcode.com/d/code/htmlimg.htm for a CDO 1.21 sample.
Extended MAPI or Redemption can be used as well.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
 
Back
Top