Messaging.SingleEmailMessage mail = new Messaging.SingleEmailMessage();
String[] toAddresses = new String[] {your Email};
mail.setToAddresses(toAddresses);
mail.setSenderDisplayName('test');
mail.setSubject('test');
mail.setHtmlBody('testbody');
Messaging.sendEmail(new Messaging.SingleEmailMessage[] {mail});
Salesforce 使用Code发送邮件
最新推荐文章于 2023-04-11 10:31:26 发布