either using the nodemailer or using the third party open source-->keeping in mind of decoupling of email service from the code.. as code should not be dependable on specific email service providers custom API.
In the production email service would be different, and would be configured accordingly.