Summary:
A customer may have a requirement to add CC and BCC addresses to emails sent out by the Email Manager.
This can be done by adding the following to your SendMail function:
eMail.CC.AddAddress("user1@test.com", "User 1");
eMail.BCC.AddAddress("user2@test.com", "User 2");
More information:
The following is a worked example using the SendMail function:
function SendMail(strsubject) {
eMail.IsHTML = true;
SenderName = eMail.SenderName;
SenderAddress = eMail.SenderAddress;
MailSubject = eMail.Subject;
MailBody = eMail.Body;
eMail.Clear();
eMail.Recipients.AddAddress(SenderAddress, SenderName);
eMail.SenderName = MsgHandler.EmailAddress;
eMail.SenderAddress = MsgHandler.EmailAddress;
// Add CC and BCC
eMail.CC.AddAddress("user1@test.com", "User 1");
eMail.BCC.AddAddress("user2@test.com", "User 2");
if (strsubject == "")
eMail.Subject = eWare.GetTrans("GenCaptions", "AutoReply") + ": " + MailSubject
else
eMail.Subject = strsubject;
eMail.Body = eWare.GetTrans("GenCaptions", "Your mail has been logged") + "<BR>" +
eWare.GetTrans("GenCaptions", "Thank you") + "<BR><BR>" +
eWare.GetTrans("GenCaptions", "Panoply Support") + "<BR><BR>" +
MailBody;
eMail.Send();
}