mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
19 lines
545 B
TypeScript
19 lines
545 B
TypeScript
import { sendEMail } from './sendEMail'
|
|
import { accountMultiRegistration } from './text/accountMultiRegistration'
|
|
import CONFIG from '@/config'
|
|
|
|
export const sendAccountMultiRegistrationEmail = (data: {
|
|
firstName: string
|
|
lastName: string
|
|
email: string
|
|
}): Promise<boolean> => {
|
|
return sendEMail({
|
|
to: `${data.firstName} ${data.lastName} <${data.email}>`,
|
|
subject: accountMultiRegistration.de.subject,
|
|
text: accountMultiRegistration.de.text({
|
|
...data,
|
|
resendLink: CONFIG.EMAIL_LINK_FORGOTPASSWORD,
|
|
}),
|
|
})
|
|
}
|