mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-19 06:10: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.
|
||||
|
||||
Reference in New Issue
Block a user