We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 060940c commit a929dfbCopy full SHA for a929dfb
sendmail.js
@@ -160,6 +160,7 @@ module.exports = function (options) {
160
let parts;
161
let cmd;
162
let upgraded = false;
163
+ let hellod = false;
164
165
/*
166
if(mail.user && mail.pass){
@@ -183,7 +184,7 @@ module.exports = function (options) {
183
184
case 220:
185
//* 220 on server ready
186
//* 220 服务就绪
- if(/\bGo ahead\b/i.test(msg) || /\bTLS\b/i.test(msg)){
187
+ if(/\bGo ahead\b/i.test(msg) || /\bTLS\b/i.test(msg) || hellod){
188
sock.removeAllListeners('data');
189
190
let original = sock;
@@ -233,6 +234,7 @@ module.exports = function (options) {
233
234
cmd = 'HELO'
235
}
236
w(cmd + ' ' + srcHost);
237
+ hellod = true;
238
break;
239
240
0 commit comments