.
This commit is contained in:
parent
a38ed7002e
commit
da0ce9a055
@ -26,7 +26,8 @@ module.exports = {
|
|||||||
dealer_logo_placeholder: "/api/uploads/images/logo-placeholder-200x100.png",
|
dealer_logo_placeholder: "/api/uploads/images/logo-placeholder-200x100.png",
|
||||||
|
|
||||||
support: {
|
support: {
|
||||||
from: "noreply@presupuestos.uecko.com",
|
from: "no-reply@presupuestos.uecko.com",
|
||||||
|
to: "dev@presupuestos.eucko.com",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
@ -83,17 +83,15 @@ export class SendIncidenceUseCase
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
const sendInfo = await this._context.services?.emailService.sendMail({
|
const sendInfo = await this._context.services?.emailService.sendMail({
|
||||||
from: {
|
from: this._context.defaults.support.from,
|
||||||
name: user.name.toString(),
|
|
||||||
address: user.email.toString(),
|
|
||||||
},
|
|
||||||
to: this._context.defaults.support.from,
|
to: this._context.defaults.support.from,
|
||||||
subject: this._context.defaults.support.subject,
|
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>();
|
return Result.ok<void>();
|
||||||
} catch (error: unknown) {
|
} catch (error: unknown) {
|
||||||
const _error = error as IInfrastructureError;
|
const _error = error as IInfrastructureError;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user