diff --git a/src/services/dappCreatedEmail.ts b/src/services/dappCreatedEmail.ts new file mode 100644 index 00000000..db8b7fd7 --- /dev/null +++ b/src/services/dappCreatedEmail.ts @@ -0,0 +1,115 @@ +export const createDappEmail = (dappname: string, dappDNS: string) => { + return ` + + + + + The DappBot Team + + + + + + + +
+ + + + + + + + + + + + + + + + + + +
+ +`; +} + +export default createDappEmail; \ No newline at end of file diff --git a/src/services/sendgrid.ts b/src/services/sendgrid.ts index bff0bb3b..30ab97f2 100644 --- a/src/services/sendgrid.ts +++ b/src/services/sendgrid.ts @@ -1,5 +1,6 @@ import sgMail from '@sendgrid/mail'; import { sendgridApiKey } from '../env'; +import dappCreatedEmail from './dappCreatedEmail'; let USING_SENDGRID = false; @@ -16,7 +17,7 @@ function sendConfirmationMail(owner:string, dappname:string, dappDNS:string) { from : FROM_ADDRESS, to : owner, subject : `${dappname} generation complete!`, - text : `${dappname} generation has completed! You may now view your dapp at ${dappDNS}.` + html : dappCreatedEmail(dappname, dappDNS) } if (USING_SENDGRID){ return sgMail.send(confirmationParam);