Skip to content

Commit

Permalink
fix: cli smtp test command add close logic and add time in body
Browse files Browse the repository at this point in the history
  • Loading branch information
moonrailgun committed Nov 26, 2023
1 parent 6ab64a7 commit 7c8749b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/cli/package.json
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
4 changes: 3 additions & 1 deletion apps/cli/src/commands/smtp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
}
)
Expand Down

0 comments on commit 7c8749b

Please sign in to comment.