diff --git a/apps/cli/package.json b/apps/cli/package.json index 4a22bc1e..998cfcec 100644 --- a/apps/cli/package.json +++ b/apps/cli/package.json @@ -1,6 +1,6 @@ { "name": "tailchat-cli", - "version": "1.5.12", + "version": "1.5.13", "description": "A Command line interface of tailchat", "bin": { "tailchat": "./bin/cli" diff --git a/apps/cli/src/commands/smtp.ts b/apps/cli/src/commands/smtp.ts index 3f890f48..47927acd 100644 --- a/apps/cli/src/commands/smtp.ts +++ b/apps/cli/src/commands/smtp.ts @@ -84,11 +84,13 @@ export const smtpCommand: CommandModule = { from: sender, to: target, subject: `Test email send in ${new Date().toLocaleDateString()}`, - text: 'This is a test email send by tailchat-cli', + text: `This is a test email send by tailchat-cli at ${new Date().toLocaleString()}`, }); console.log('Send Result:', res); } catch (err) { console.log('Send Failed:', String(err)); + } finally { + transporter.close(); } } )