mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-18 13:50:31 +00:00
fix: hook up cc and bcc fields to mail sender
This commit is contained in:
@@ -126,7 +126,6 @@ export class SendSaleEstimateMail {
|
||||
mailOptions: SaleEstimateMailOptions
|
||||
): Promise<SaleEstimateMailOptions> => {
|
||||
const formatterArgs = await this.formatterArgs(tenantId, saleEstimateId);
|
||||
|
||||
const formattedOptions =
|
||||
await this.contactMailNotification.formatMailOptions(
|
||||
tenantId,
|
||||
@@ -166,6 +165,8 @@ export class SendSaleEstimateMail {
|
||||
const mail = new Mail()
|
||||
.setSubject(formattedOptions.subject)
|
||||
.setTo(formattedOptions.to)
|
||||
.setCC(formattedOptions.cc)
|
||||
.setBCC(formattedOptions.bcc)
|
||||
.setContent(formattedOptions.message);
|
||||
|
||||
// Attaches the estimate pdf to the mail.
|
||||
|
||||
@@ -77,6 +77,8 @@ export class SendSaleInvoiceMail {
|
||||
const mail = new Mail()
|
||||
.setSubject(formattedMessageOptions.subject)
|
||||
.setTo(formattedMessageOptions.to)
|
||||
.setCC(formattedMessageOptions.cc)
|
||||
.setBCC(formattedMessageOptions.bcc)
|
||||
.setContent(formattedMessageOptions.message);
|
||||
|
||||
// Attach invoice document.
|
||||
@@ -89,7 +91,6 @@ export class SendSaleInvoiceMail {
|
||||
{ filename: `${invoiceFilename}.pdf`, content: invoicePdfBuffer },
|
||||
]);
|
||||
}
|
||||
|
||||
const eventPayload = {
|
||||
tenantId,
|
||||
saleInvoiceId,
|
||||
|
||||
@@ -135,6 +135,8 @@ export class SendPaymentReceiveMailNotification {
|
||||
const mail = new Mail()
|
||||
.setSubject(parsedMessageOpts.subject)
|
||||
.setTo(parsedMessageOpts.to)
|
||||
.setCC(parsedMessageOpts.cc)
|
||||
.setBCC(parsedMessageOpts.bcc)
|
||||
.setContent(parsedMessageOpts.message);
|
||||
|
||||
const eventPayload = {
|
||||
|
||||
@@ -139,6 +139,8 @@ export class SaleReceiptMailNotification {
|
||||
const mail = new Mail()
|
||||
.setSubject(parsedMessageOpts.subject)
|
||||
.setTo(parsedMessageOpts.to)
|
||||
.setCC(parsedMessageOpts.cc)
|
||||
.setBCC(parsedMessageOpts.bcc)
|
||||
.setContent(parsedMessageOpts.message);
|
||||
|
||||
// Attaches the receipt pdf document.
|
||||
|
||||
Reference in New Issue
Block a user