Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C++
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 24-Jan-13 18:10pm
lee gee372
Edited 26-Jan-13 21:55pm
v3

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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.
  Permalink  
Comments
lee gee at 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 at 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)



Advertise | Privacy | Mobile
Web03 | 2.8.1411022.1 | Last Updated 27 Jan 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100