Missing Header ? (General questions)

by Maverick5 @, (7111 days ago)

hey Guys,

How do we check to see if header exists in email,
before running variable = msg.header( to ).value
so the app doesn't crash when it does not exist ?

Thanks

locked

Re: Missing Header ?

by Jasmine, (7111 days ago) @ Maverick5

You can use Headers.Exists method, or you can just try to read it and trap the error.

locked