diff --git a/src/index.js b/src/index.js index a9c0ad7..2bd69fd 100644 --- a/src/index.js +++ b/src/index.js @@ -297,7 +297,7 @@ exports.SMTPClient = class extends SMTPChannel { } else { lines = []; - return this.write(`${source.replace(/^\./m,'..')}\r\n.\r\n`, {timeout, handler}); + return this.write(`${source.replace(/^\./mg,'..')}\r\n.\r\n`, {timeout, handler}); } }).then((code) => { if (code.charAt(0) === '2') {