It would be nice if the structure of the email had the error code in it somewhere so I can just analyze that part (is there a part with the error code).
Right now I'm sticking to regexp's but they come in many different forms, such as:
Code: Select all
550: error message
Sorry, I couldn't find any host named example.tld. (#5.1.2)Is this the best way to scan for an error code?