This commit is contained in:
David Arranz 2024-10-01 20:02:16 +02:00
parent a38ed7002e
commit da0ce9a055
2 changed files with 7 additions and 8 deletions

View File

@ -26,7 +26,8 @@ module.exports = {
dealer_logo_placeholder: "/api/uploads/images/logo-placeholder-200x100.png",
support: {
from: "noreply@presupuestos.uecko.com",
from: "no-reply@presupuestos.uecko.com",
to: "dev@presupuestos.eucko.com",
},
},

View File

@ -83,17 +83,15 @@ export class SendIncidenceUseCase
try {
const sendInfo = await this._context.services?.emailService.sendMail({
from: {
name: user.name.toString(),
address: user.email.toString(),
},
from: this._context.defaults.support.from,
to: this._context.defaults.support.from,
subject: this._context.defaults.support.subject,
html: incidence.description.toString(),
html: `<p>Distribuidor: ${dealer.name.toString()}</p>
<p>Email: ${user.email.toString()}</p>
<br>
<p>${incidence.description.toString()}</p>`,
});
console.log(sendInfo);
return Result.ok<void>();
} catch (error: unknown) {
const _error = error as IInfrastructureError;