Directly from nodemailer docs.