({ inviterName, communityName, host, to }: Options)
| 10 | |
| 11 | export default class InviteToJoinMailer { |
| 12 | static async send({ inviterName, communityName, host, to }: Options) { |
| 13 | const url = `${host}/signup?email=${encodeURIComponent(to)}`; |
| 14 | const content = `Join your team ${communityName} on Linen.dev and start collaborating. ${host}/signup?email=${encodeURIComponent( |
| 15 | to |
| 16 | )}`; |
| 17 | return ApplicationMailer.send({ |
| 18 | to, |
| 19 | subject: `${inviterName} invited you to join the ${communityName} community on linen.dev`, |
| 20 | text: content, |
| 21 | html: view({ communityName, inviterName, url }), |
| 22 | }); |
| 23 | } |
| 24 | } |
nothing calls this directly
no outgoing calls
no test coverage detected