CLASSROOMIO-T-133: Send welcome email after onboarding
Co-authored-by: Rotimi Best <rotimiibitoyeemma@gmail.com> Merge-request: CLASSROOMIO-MR-55 Merged-by: Best Admin <best@digdippa.com>
This commit is contained in:
committed by
Space Cloud
co-authored by
Rotimi Best
parent
b979da3db1
commit
7a5d341865
@@ -0,0 +1,17 @@
|
||||
import * as SendGridService from '@sendgrid/mail';
|
||||
import type { MailService } from '@sendgrid/mail';
|
||||
import { SENDGRID_API_KEY } from '$env/static/private';
|
||||
|
||||
export const SENDGRID_FROM = 'Rotimi Best <best@classroomio.com>';
|
||||
|
||||
export let sendgrid: MailService;
|
||||
|
||||
export const getSendgrid = (): MailService => {
|
||||
if (sendgrid) return sendgrid;
|
||||
|
||||
SendGridService.setApiKey(SENDGRID_API_KEY);
|
||||
|
||||
sendgrid = SendGridService;
|
||||
|
||||
return sendgrid;
|
||||
};
|
||||
Reference in New Issue
Block a user