oneuptime/Mail/Config.ts
2022-04-20 21:57:05 +01:00

28 lines
826 B
TypeScript

import Hostname from 'Common/Types/API/Hostname';
import Email from 'Common/Types/Email';
import Port from 'Common/Types/Port';
export const InternalSmtpUser: string = process.env['INTERNAL_SMTP_USER'] || '';
export const InternalSmtpPassword: string =
process.env['INTERNAL_SMTP_PASSWORD'] || '';
export const InternalSmtpHost: Hostname = new Hostname(
process.env['INTERNAL_SMTP_HOST'] || ''
);
export const InternalSmtpPort: Port = new Port(
parseInt(process.env['INTERNAL_SMTP_PORT'] || '25')
);
export const InternalSmtpSecure: boolean = Boolean(
process.env['INTERNAL_SMTP_SECURE']
);
export const InternalSmtpFromEmail: Email = new Email(
process.env['INTERNAL_SMTP_FROM'] || 'noreply@oneuptime.com'
);
export const InternalSmtpFromName: string =
process.env['INTERNAL_SMTP_NAME'] || '';