✉️ Email pusher logs
Co-authored-by: Monta <monta@HP-ProBook-445-14-inch-G9-Notebook-PC-505aadfc.localdomain>
This commit is contained in:
@@ -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,
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user