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