style: run prettier on entire codebase
This commit is contained in:
@@ -1,14 +1,21 @@
|
||||
import nodemailer from 'nodemailer';
|
||||
import { config } from '../config/env';
|
||||
import nodemailer from "nodemailer";
|
||||
import { config } from "../config/env";
|
||||
|
||||
const transporter = nodemailer.createTransport({
|
||||
sendmail: true,
|
||||
newline: 'unix',
|
||||
path: '/usr/sbin/sendmail',
|
||||
newline: "unix",
|
||||
path: "/usr/sbin/sendmail",
|
||||
});
|
||||
|
||||
export async function sendMail(to: string, subject: string, html: string): Promise<boolean> {
|
||||
const from = config.email.smtpFrom || config.email.contactFrom || 'web@boha-automation.cz';
|
||||
export async function sendMail(
|
||||
to: string,
|
||||
subject: string,
|
||||
html: string,
|
||||
): Promise<boolean> {
|
||||
const from =
|
||||
config.email.smtpFrom ||
|
||||
config.email.contactFrom ||
|
||||
"web@boha-automation.cz";
|
||||
|
||||
try {
|
||||
await transporter.sendMail({
|
||||
|
||||
Reference in New Issue
Block a user