Skip to content

Commit

Permalink
✉️ Email pusher logs
Browse files Browse the repository at this point in the history
Co-authored-by: Monta <[email protected]>
  • Loading branch information
MontaGhanmy and Monta authored Nov 21, 2023
1 parent 3bc4aa1 commit 19f0202
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ export default class EmailPusherClass
} else {
if (this.interface === "smtp") {
try {
this.logger.info("sending email via smtp interface.");
const info = await this.transporter.sendMail({
from: `"Sender Name" <${this.sender}>`,
to: to,
Expand All @@ -149,6 +150,7 @@ export default class EmailPusherClass
this.logger.error({ error: `${err}` }, "Failed to send email");
}
} else {
this.logger.info("sending email via api interface.");
const { data } = await axios.post<EmailPusherEmailType, EmailPusherResponseType>(
`${this.apiUrl}`,
emailObject,
Expand Down

0 comments on commit 19f0202

Please sign in to comment.