wodMailbox ActiveX Control - FromString Method
      
 

Description
Imports headers from string variable.

Return Type

None  


Syntax

object.FromString(HeadersData)



The FromString Method syntax has these parts:

Part Description
object An expression evaluating to an object of type Headers.
HeadersData Required. Holds one or more lines with full headers.

Remarks

FromString method will parse contents of HeadersData argument line by line and add one or more headers for each line. It expects to find full header lines, such as

From: joe@usa.net
To: general@weonlydo.com

and creates new Header objects for each such header found. In above example, it would create 2 headers - one with Name "From" and other with Name "To", and would set corresponding Values "joe@usa.net" and "general@weonlydo.com".

For example, you can set it like this:

a = "From: joe@usa.net" & vbCrLf & "To: general@weonlydo.com"
Mailbox1.Messages(0).Headers.FromString a