mirror of
https://github.com/documenso/documenso.git
synced 2025-11-13 00:03:33 +10:00
Implemented Email Domains which allows Platform/Enterprise customers to send emails to recipients using their custom emails.
18 lines
497 B
TypeScript
18 lines
497 B
TypeScript
export const generateDkimRecord = (recordName: string, publicKeyFlattened: string) => {
|
|
return {
|
|
name: recordName,
|
|
value: `v=DKIM1; k=rsa; p=${publicKeyFlattened}`,
|
|
type: 'TXT',
|
|
};
|
|
};
|
|
|
|
export const AWS_SES_SPF_RECORD = {
|
|
name: `@`,
|
|
value: 'v=spf1 include:amazonses.com -all',
|
|
type: 'TXT',
|
|
};
|
|
|
|
export const generateEmailDomainRecords = (recordName: string, publicKeyFlattened: string) => {
|
|
return [generateDkimRecord(recordName, publicKeyFlattened), AWS_SES_SPF_RECORD];
|
|
};
|