| MimeStoreMessage | ||||||||||||||||||||||
Parameters
Remarks
Return Value
Example HMESSAGE hMessage; // Compose a new message hMessage = MimeComposeMessage(lpszSender, lpszRecipient, NULL, lpszSubject, lpszMessage, NULL, MIME_CHARSET_DEFAULT, MIME_ENCODING_DEFAULT); if (hMessage != INVALID_MESSAGE) { HMESSAGESTORE hStorage; // Open the message storage file hStorage = MimeOpenMessageStore(lpszFileName, MIME_STORAGE_WRITE); if (hStorage == INVALID_MESSAGESTORE) { // Delete the message and return if we are unable to // open the storage file MimeDeleteMessage(hMessage); return; } // Store a copy of the message in the message store nMessageId = MimeStoreMessage(hStorage, hMessage, 0); if (nMessageId == MIME_ERROR) { // We were unable to store the message } // Close the message store MimeCloseMessageStore(hStorage); // Destroy the message that was created MimeDeleteMessage(hMessage); } Requirements
See Also
|
||||||||||||||||||||||
|
Copyright © 2008 Catalyst Development Corporation. All rights reserved. |
||||||||||||||||||||||