Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
Exchange
2000.active.directory
2000.admin
2000.announcements
2000.app.conversion
2000.applications
2000.clients
2000.clustering
2000.connectivity
2000.development
2000.documentation
2000.general
2000.information.store
2000.interop
2000.kms
2000.misc
2000.protocols
2000.realtime.collabo.
2000.setup
2000.transport
2000.win2000
admin
application.conversion
applications
clients
clustering
connectivity
design
development
misc
mobility
setup
tools
  
 
date: Mon, 7 Jan 2008 07:15:48 -0800 (PST),    group: microsoft.public.exchange.development        back       


Exchange Web Services x-header   
I'm trying to send an e-mail using Exchange Web Services that has an
extra x-header set. I have a working sample that can send the e-mail,
but I can't figure out how to add an x-header. How do I do this?
date: Mon, 7 Jan 2008 07:15:48 -0800 (PST)   author:   unknown

Re: Exchange Web Services x-header   
You need to add it as an extended property using the InternetHeaders Propset 
GUID so if you take the sample from the SDK 
http://msdn2.microsoft.com/en-us/library/bb408521.aspx all you need to add 
is


    PathToExtendedFieldType epExPath1 = new PathToExtendedFieldType();
    epExPath1.DistinguishedPropertySetId = 
DistinguishedPropertySetType.InternetHeaders;
    epExPath1.DistinguishedPropertySetIdSpecified = true;
    epExPath1.PropertyName = "x-myheader";
    epExPath1.PropertyType = MapiPropertyTypeType.String;

    ExtendedPropertyType exprop1 = new ExtendedPropertyType();
    exprop1.ExtendedFieldURI = epExPath1;
    exprop1.Item = "blah";
    message.ExtendedProperty = new ExtendedPropertyType[] { exprop1 };

Cheers
Glen

 wrote in message 
news:186e7a7a-a5d4-4a5d-a52d-fb6b334735df@l6g2000prm.googlegroups.com...
> I'm trying to send an e-mail using Exchange Web Services that has an
> extra x-header set. I have a working sample that can send the e-mail,
> but I can't figure out how to add an x-header. How do I do this?
date: Tue, 8 Jan 2008 12:51:03 +1100   author:   Glen Scales [MVP]

Re: Exchange Web Services x-header   
Thanks, that works perfectly.

On Jan 7, 8:51 pm, "Glen Scales [MVP]" 
wrote:
> You need to add it as an extended property using the InternetHeaders Propset
> GUID so if you take the sample from the SDKhttp://msdn2.microsoft.com/en-us/library/bb408521.aspxall you need to add
> is
>
>     PathToExtendedFieldType epExPath1 = new PathToExtendedFieldType();
>     epExPath1.DistinguishedPropertySetId =
> DistinguishedPropertySetType.InternetHeaders;
>     epExPath1.DistinguishedPropertySetIdSpecified = true;
>     epExPath1.PropertyName = "x-myheader";
>     epExPath1.PropertyType = MapiPropertyTypeType.String;
>
>     ExtendedPropertyType exprop1 = new ExtendedPropertyType();
>     exprop1.ExtendedFieldURI = epExPath1;
>     exprop1.Item = "blah";
>     message.ExtendedProperty = new ExtendedPropertyType[] { exprop1 };
>
> Cheers
> Glen
>
>  wrote in message
>
> news:186e7a7a-a5d4-4a5d-a52d-fb6b334735df@l6g2000prm.googlegroups.com...
>
> > I'm trying to send an e-mail using Exchange Web Services that has an
> > extra x-header set. I have a working sample that can send the e-mail,
> > but I can't figure out how to add an x-header. How do I do this?
date: Tue, 8 Jan 2008 11:26:59 -0800 (PST)   author:   unknown

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us