Click here to Skip to main content
15,881,172 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi,

can i ask for sample code or explanation on how to add a x-header in an outlook mail item using C++?

I badly need your answers this week..
please help

thanks
Posted
Updated 26-Jan-13 20:55pm
v3

1 solution

Your problem description is not quite complete. You have flagged C++ and mention Exchange and MAPI. Are you talking about using an SMTP sender written in C++ ... or you want to know how to write an SMTP client for Exchange?

There are many SMTP clients out there (I wrote one but not for Exchange) and the documentation for each of these should include info on how to add an x-header.
 
Share this answer
 
Comments
lee gee 27-Jan-13 2:55am    
Hi H.Brydon, thanks for your answer.
My goal is to write a code in C++ that can add an x-header in an Outlook mailitem. Can I ask insights from you about this?

thanks
H.Brydon 27-Jan-13 16:46pm    
The link http://www.ivasoft.biz/addxheader.html has an example in VB for Outlook 2002 (I know you said C++).

One thing you can do is set up Outlook to send outgoing email through an external SMTP server (on your main mail account or a separate one) and you might have more options with the SMTP interface.

Also, the link at http://uits.arizona.edu/services/email/email-headers might show some insight into how to send headers of your choice in outgoing messages. You might be able to wangle this into something you can embed in "Stationary".

[I am not a fan of either Outlook or Exchange Server.]

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900