({ host, to, token }: Options)
| 9 | |
| 10 | export default class ResetPasswordMailer { |
| 11 | static async send({ host, to, token }: Options) { |
| 12 | const url = new URL(`/reset-password?token=${token}`, host).toString(); |
| 13 | return ApplicationMailer.send({ |
| 14 | to, |
| 15 | subject: 'Linen.dev - Reset your password', |
| 16 | text: `Reset your password here: ${url}`, |
| 17 | html: view({ url }), |
| 18 | }); |
| 19 | } |
| 20 | } |
nothing calls this directly
no outgoing calls
no test coverage detected