Hi TiGGi
First read the textfile with
cffile
action="read"
After that, search for the Position of the "To: <" inside
the String with
FindNoCase.
This will return the position of the first occurence of this
substring.
If you're used to regular expressions, you can search for the
Pattern of the "To: <admin@scout.com>" line with a regular
expression. Use
REFindNoCase.
I think this is the better way, but more complicated.
If you have the position of the substring, you can extract
the Email adress using the
Mid
function.
I hope this helps.