You need to sign in to do that
Don't have an account?
timomer
Add multiple addresses to CC
Hello,
im following the code example on this page: http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_classes_email_outbound.htm
i wish for there to be two address on the CC, but, when adding them I get "INVALID_EMAIL_ADDRESS"
one address works fine, when separating the address I have tried "," and ";" - both cause an error.
In what format should I pass the string of address to mail.setCcAddresses?
Many thanks,
tim
You need to use a String array to pass the addresses.
Like the sample shows:
String[] ccAddresses = new String[] {'user@acme.com','support@acme.com'}; mail.setCcAddresses(ccAddresses);
All Answers
You need to use a String array to pass the addresses.
Like the sample shows:
String[] ccAddresses = new String[] {'user@acme.com','support@acme.com'}; mail.setCcAddresses(ccAddresses);