import { Reception } from './classes.reception.js'; import { RegistrationSession } from './classes.registrationsession.js'; import { User } from './classes.user.js'; import * as plugins from './plugins.js'; export class ReceptionMailer { public receptionRef: Reception; constructor(receptionRefArg: Reception) { this.receptionRef = receptionRefArg; } private createBodyString = (textArg) => `
It looks like you requested to register an account with us. We just want to make sure it really was you.
In case it was you, please continue with the registration process by clicking the button below. Otherwise, please ignore this email.
What do I need a workspace.global Account for?
The workspace.global Account is needed to log into e.g. social.io
Someone retried to reregister with the email ${userArg.data.email}
In case it was you, please simply log in with your existing account. Otherwise, please ignore this email.
Forgot your password?
Just click the password reset link when logging in.
You now have a fully registered workspace.global Account
What can I use it for?
The workspace.global Account can be used to log into all our apps.
Some of them are
${(() => {
const products = ['social.io', 'layer.io'];
return products.map((productArg) => `${productArg}`).join(' ');
})()}
It looks like you requested to login passwordless via this email.
In case it was you, please continue by clicking the button below. Otherwise, please ignore this email.
`), }); } public sendPasswordResetMail(userArg: User, validationTokenArg: string) { this.receptionRef.szPlatformClient.emailConnector.sendEmail({ from: 'workspace.globalIt looks like you requested to reset your password with us.
In case it was you, please continue by clicking the button below. Otherwise, please ignore this email.
`), }); } }