Bootstrap mail to with cc

To send an email with a CC (carbon copy) using Bootstrap Mail, you can use the cc property in the email options. Here is an example:

import { bootstrapMail } from 'bootstrap-mail';

const emailOptions = {
  to: '[email protected]',
  subject: 'Test email with CC',
  body: 'This is the email body',
  cc: ['[email protected]', '[email protected]']
};

bootstrapMail.sendEmail(emailOptions);

In this example, the cc property is an array of email addresses that will receive a copy of the email.

You can also use the cc property with the from property to specify the sender's email address:

const emailOptions = {
  from: '[email protected]',
  to: '[email protected]',
  subject: 'Test email with CC',
  body: 'This is the email body',
  cc: ['[email protected]', '[email protected]']
};

bootstrapMail.sendEmail(emailOptions);

Make sure to replace the email addresses with the actual addresses you want to send the email to and receive a copy.

You can also use the cc property with the replyTo property to specify the reply-to email address:

const emailOptions = {
  from: '[email protected]',
  to: '[email protected]',
  subject: 'Test email with CC',
  body: 'This is the email body',
  cc: ['[email protected]', '[email protected]'],
  replyTo: '[email protected]'
};

bootstrapMail.sendEmail(emailOptions);

This way, the recipient can reply to the email and the reply will be sent to the replyTo email address.

Note that the cc property is optional, so you can omit it if you don't need to send a copy of the email to anyone.