Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: close smtp connection after sending or on error
Unfortunately, `getSMTPObject()` creates a connection if it's not already established. Ideally, the connection is already established due to the send command some lines above so we only close it. There is no way around it because the wrapped SMTP object is private. Signed-off-by: Richard Steinmetz <[email protected]>
- Loading branch information