File tree Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -111,8 +111,18 @@ module.exports = function(mongoose) {
111
111
options [ key ] = optionsToConfigure [ key ] ;
112
112
}
113
113
}
114
+ console . log ( options . transportOptions ) ;
114
115
transporter = nodemailer . createTransport ( options . transportOptions ) ;
115
116
117
+ // verify connection configuration
118
+ transporter . verify ( function ( error , success ) {
119
+ if ( error ) {
120
+ console . log ( error ) ;
121
+ } else {
122
+ console . log ( 'Email Server is ready to take our messages' ) ;
123
+ }
124
+ } ) ;
125
+
116
126
var err ;
117
127
118
128
if ( typeof options . verificationURL !== 'string' ) {
Original file line number Diff line number Diff line change @@ -36,11 +36,15 @@ module.exports = {
36
36
37
37
host : 'smtp.sendgrid.net' ,
38
38
port : 465 ,
39
- secure : true ,
39
+ secure : false ,
40
40
service : 'Sendgrid' ,
41
41
auth : {
42
42
user : 'apikey' ,
43
43
pass : process . env . SENDGRID_API_KEY
44
+ } ,
45
+ tls : {
46
+ ciphers : 'SSLv3' ,
47
+ rejectUnauthorized : false
44
48
}
45
49
}
46
50
} ;
You can’t perform that action at this time.
0 commit comments