exchangefreaks.com Forum Index
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Error while appending custom headers

 
Post new topic   Reply to topic    exchangefreaks.com Forum Index -> MS Exchange Applications
Author Message
Beryl Wilson



Joined: 05 Aug 2007
Posts: 6

PostPosted: Wed Aug 27, 2003 5:13 pm    Post subject: Error while appending custom headers Reply with quote

hi all,
I get an error while appending a new custom header.

Ex:

strHeaderName = "urn:schemas:mailheader:x-ppnet"
Msg.Fields.Append strHeaderName, adVarChar

At the above line i get the following error

Error: Arguments are of the wrong type, are out of acceptable range, or are
in conflict with one another.
(this error happd inside ISMTPOnArrival)

Archived from group: microsoft>public>exchange>applications
Back to top
View user's profile Send private message
Siegfried Weber [MVP]



Joined: 05 Aug 2007
Posts: 2

PostPosted: Thu Aug 28, 2003 3:51 pm    Post subject: Re: Error while appending custom headers Reply with quote

"Beryl Wilson" wrote in message:
>
> strHeaderName = "urn:schemas:mailheader:x-ppnet"
> Msg.Fields.Append strHeaderName, adVarChar

Try:

Msg.Fields.Item("urn:schemas:mailheader:x-ppnet").Value = strMyValue

--


Development Lead,

CDOLive LLC - The Microsoft Messaging and Collaboration Application Experts
http://www.cdolive.com

This information is provided "AS IS" with no warranties, and confers no
rights.
You assume all risk for your use. © 2003 CDOLive LLC. All rights reserved.
Sample code subject to http://www.cdolive.com/disclaim.htm
Back to top
View user's profile Send private message
Beryl Wilson



Joined: 05 Aug 2007
Posts: 6

PostPosted: Fri Aug 29, 2003 1:47 pm    Post subject: Re: Error while appending custom headers Reply with quote

hi Weber,
Thanks for ur reply.
Before the below line of code,
Msg.Fields.Item("urn:schemas:mailheader:x-ppnet").Value =
strMyValue
dont we need to append this custom header to the msg.fields
collection??? some thing like...
Msg.Fields.Append "urn:schemas:mailheader:x-ppnet", adVarChar...plz
help me..

Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    exchangefreaks.com Forum Index -> MS Exchange Applications All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group