我已经设置了一个这样的密件抄送地址,但它不会出去
Contact con1 = new Contact();
con1.FirstName = 'Anil';
con1.LastName = 'Dutt';
con1.Email = 'anil@setup.com';
insert con1;
Messaging.SingleEmailMessage mail1 = new Messaging.SingleEmailMessage();
mail1.setTargetObjectId(con1.Id);
mail1.setWhatId(opp.Id);
mail1.setTemplateId('00Xd0000000PJGH');
String[] bccEmail = new String[]{'xxxx@gmail.com'};
mail1.setBccAddresses(bccEmail);
Messaging.sendEmail(new Messaging.SingleEmailMessage[] { mail1 });
delete con1;
邮件发送到 anil@setup.com 但不发送到 xxxx@gmail.com
我试过 mail1.setBccSender(true) 但也没有工作
没有错误,也没有启用密件抄送合规性
任何想法?
谢谢