2022-04-14 13:40:04 +00:00
|
|
|
import Hostname from 'Common/Types/API/Hostname';
|
2022-04-12 12:41:51 +00:00
|
|
|
import Email from 'Common/Types/Email';
|
|
|
|
import Port from 'Common/Types/Port';
|
|
|
|
|
2022-04-20 20:57:05 +00:00
|
|
|
export const InternalSmtpUser: string = process.env['INTERNAL_SMTP_USER'] || '';
|
2022-04-12 12:41:51 +00:00
|
|
|
|
|
|
|
export const InternalSmtpPassword: string =
|
2022-04-20 20:57:05 +00:00
|
|
|
process.env['INTERNAL_SMTP_PASSWORD'] || '';
|
2022-04-12 12:41:51 +00:00
|
|
|
|
2022-04-14 13:40:04 +00:00
|
|
|
export const InternalSmtpHost: Hostname = new Hostname(
|
2022-04-20 20:57:05 +00:00
|
|
|
process.env['INTERNAL_SMTP_HOST'] || ''
|
2022-04-14 13:40:04 +00:00
|
|
|
);
|
2022-04-12 12:41:51 +00:00
|
|
|
|
|
|
|
export const InternalSmtpPort: Port = new Port(
|
2022-04-20 20:57:05 +00:00
|
|
|
parseInt(process.env['INTERNAL_SMTP_PORT'] || '25')
|
2022-04-12 12:41:51 +00:00
|
|
|
);
|
|
|
|
|
2022-04-15 22:17:21 +00:00
|
|
|
export const InternalSmtpSecure: boolean = Boolean(
|
2022-04-20 20:57:05 +00:00
|
|
|
process.env['INTERNAL_SMTP_SECURE']
|
2022-04-15 22:17:21 +00:00
|
|
|
);
|
2022-04-14 13:40:04 +00:00
|
|
|
|
2022-04-12 12:41:51 +00:00
|
|
|
export const InternalSmtpFromEmail: Email = new Email(
|
2022-04-20 20:57:05 +00:00
|
|
|
process.env['INTERNAL_SMTP_FROM'] || 'noreply@oneuptime.com'
|
2022-04-12 12:41:51 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
export const InternalSmtpFromName: string =
|
2022-04-20 20:57:05 +00:00
|
|
|
process.env['INTERNAL_SMTP_NAME'] || '';
|