Sample code for 30+ languages & platforms
Visual Basic 6.0

Load MIME Object from Email Object

See more Email Object Examples

Demonstrates how to load a Chilkat Mime object from a Chilkat Email object. (Copies the email into a Mime object.)

Chilkat Visual Basic 6.0 Downloads

Visual Basic 6.0
Dim success As Long
success = 0

Dim email As New ChilkatEmail
success = email.LoadEml("qa_data/eml/sample.eml")

' Write the full MIME of the email to a StringBuilder.
Dim sbMime As New ChilkatStringBuilder
success = email.GetMimeSb(sbMime)

' Load the MIME object from the StringBuilder
Dim mime As New ChilkatMime
success = mime.LoadMimeSb(sbMime)

Debug.Print mime.GetMime()