Getting the message body

Top  Previous  Next

Upon retrieving an email message from a mailbox you can get the email body using the GetBody method.

 

Example

 

[C#]

myPop.Connect();

IEnumerator e = myPop.GetMessages();

while(e.MoveNext()) {

 EmailMessage message = (EmailMessage)e.Current;

 // write out message body

 Console.WriteLine(message.GetBody());

}

 

[Visual Basic]

myPop.Connect()

Dim e As IEnumerator = myPop.GetMessages()

Dim message As EmailMessage = Nothing

While (e.MoveNext())

 message = e.Current

 ' write out message body

 Console.WriteLine(message.GetBody())

End While

 

 

 

 





Home | Company | Products | Solutions | Purchase | Support | Services | Blog

© 2021 JSCAPE LLC