({ to }: { to: string })
| 3 | |
| 4 | export default class SyncMailer { |
| 5 | static async start({ to }: { to: string }) { |
| 6 | return ApplicationMailer.send({ |
| 7 | to, |
| 8 | subject: 'Sync start in Linen.dev', |
| 9 | text: `We've started syncing your data. We'll notify you when it's done.`, |
| 10 | html: start(), |
| 11 | }); |
| 12 | } |
| 13 | |
| 14 | static async end({ to, url }: { to: string; url: string }) { |
| 15 | return ApplicationMailer.send({ |