Home   Buy Now   Products   Downloads   Support   Resellers   Contact   Site Map  
Home   Buy Now   Download   Support  
Email Component, SMTP Component, POP3 Component, IMAP Component, bulk mail

Home
Purchase
Upgrade
 
Products
Downloads
 
Support
 Samples
 KB
 Forum
 
Newsletter
 
Customers
 Current List
 Comments
 
Resellers
Jobs
Contact Us

View Message

View thread.

Contact Name: Michel Christiaens
Message Date: 8/13/2003 4:49:31 AM
Subject: saving and retrieving MAILSTORE_ENVELOPEUSERDATA

Message:
Can you give me an example how to save en retrieve MAILSTORE_ENVELOPEUSERDATA from a message?

This is what I came up with, but this doesn't seem to work:

/////////////////////////////////////////////////////////////////
struct SEmailUserData {
LPSTR strOne;
LPSTR strTwo;
};

//************ SAVE ************//
SEmailUserData sEmailUserData;
sEmailUserData.strOne = "just a test";
sEmailUserData.strTwo = "some data";

MAILSTORE_ENVELOPEUSERDATA pUserData;
pUserData.dwStructureID = 0;
pUserData.dwFlags = 0;
pUserData.dwSize = sizeof(sEmailUserData);
pUserData.pData = (LPBYTE)&sEmailUserData;

MailStore_Add822(hSomeMailStore, szSomeFilename, NULL, &dwSomeRecNo, &pUserData, 0, 0)


//*********** RETRIEVE ***********//
PMAILSTORE_ENVELOPE pEnv=NULL;
MailStore_GetEnvelope(hSomeMailStore, dwSomeRecNo), &pEnv, 0, 0)
SEmailUserData* sEmailUserData;
if(pEnv->pUserData != NULL)
sEmailUserData = (SEmailUserData*)pEnv->pUserData->pData

©2013 Quiksoft Corporation. All rights reserved. Terms of Use, Privacy Statement, Trademarks