@@ -8,9 +8,9 @@ const url = require('url');
8
8
9
9
const BASE_PORT = '2368' ;
10
10
const knownMailServices = [
11
- 'AOL ' , 'DynectEmail ' , 'FastMail ' , 'Gmail ' , 'GoDaddy ' , 'GoDaddyAsia ' , 'GoDaddyEurope ' , 'hot.ee' , 'Hotmail ' , 'iCloud ' ,
12
- 'mail.ee' , 'Mail.Ru ' , 'Mailgun ' , 'Mailjet ' , 'Mandrill ' , 'Postmark ' , 'QQ ' , 'QQex ' , 'SendGrid ' ,
13
- 'SendCloud ' , 'SES ' , 'Yahoo ' , 'yandex' , 'Zoho '
11
+ 'aol ' , 'dynectemail ' , 'fastmail ' , 'gmail ' , 'godaddy ' , 'godaddyasia ' , 'godaddyeurope ' , 'hot.ee' , 'hotmail ' , 'icloud ' ,
12
+ 'mail.ee' , 'mail.ru ' , 'mailgun ' , 'mailjet ' , 'mandrill ' , 'postmark ' , 'qq ' , 'qqex ' , 'sendgrid ' ,
13
+ 'sendcloud ' , 'ses ' , 'yahoo ' , 'yandex' , 'zoho '
14
14
] ;
15
15
16
16
/*
@@ -119,7 +119,7 @@ module.exports = {
119
119
// Designed to support the most common mail configs, more advanced configs will require editing the config file
120
120
mail : {
121
121
description : 'Mail transport, E.g SMTP, Sendmail or Direct' ,
122
- validate : value => includes ( [ 'SMTP ' , 'Sendmail ' , 'Direct ' ] , value ) || 'Invalid mail transport' ,
122
+ validate : value => includes ( [ 'smtp ' , 'sendmail ' , 'direct ' ] , value . toLowerCase ( ) ) || 'Invalid mail transport' ,
123
123
configPath : 'mail.transport' ,
124
124
type : 'string' ,
125
125
default : 'Direct' ,
@@ -128,7 +128,7 @@ module.exports = {
128
128
mailservice : {
129
129
description : 'Mail service (used with SMTP transport), E.g. Mailgun, Sendgrid, Gmail, SES...' ,
130
130
configPath : 'mail.options.service' ,
131
- validate : value => includes ( knownMailServices , value ) || 'Invalid mail service' ,
131
+ validate : value => includes ( knownMailServices , value . toLowerCase ( ) ) || 'Invalid mail service' ,
132
132
type : 'string' ,
133
133
group : 'Mail Options:'
134
134
} ,
0 commit comments