Changed the code that works with Mailtrap since Mailtrap changed its API.