| 12 | } |
| 13 | |
| 14 | class ApplicationMailer { |
| 15 | static async send(options: Options) { |
| 16 | if (!process.env.EMAIL_HOST) { |
| 17 | return; |
| 18 | } |
| 19 | return transporter.sendMail({ |
| 20 | ...options, |
| 21 | from: NOREPLY_EMAIL, |
| 22 | }); |
| 23 | } |
| 24 | } |
| 25 | |
| 26 | export default ApplicationMailer; |
nothing calls this directly
no outgoing calls
no test coverage detected