Click or drag to resize

CStorage.RawWrite Method

X#
Now this method is called multiple times until the complete email including all attachments is received. You have to implement how you want to store each data block.

Namespace:  VO
Assembly:  VOInternetClasses (in VOInternetClasses.dll) Version: 2.19
Syntax
 VIRTUAL METHOD RawWrite(
	cData AS STRING
) AS VOID
Request Example View Source

Parameters

cData
Type: String
Contains the file name of the attachment.

Return Value

Type: 
cID STRING The unique ID. If AttachmentAdd() fails it returns a NULL_STRING.
Remarks
Tip Tip
It is not recommended to decode raw emails in memory as one single string. The preferred mechanism is to stream them to disk or to a database. "streaming" instead. Look into the method EmailWindowMain:ImportMail() of the email sample to see how easy this works. If you want to see how to send an email into a raw email file look into the method EmailStore:SendMailAsFile() of the email sample.
See Also