views:

11

answers:

0

Hi all

I am using the below code to send the email to more then one id, but the mail is not getting delivered.

          Address [] toAddresses = new Address[emailto.length];
            for (i = 0; i <= emailto.length ; i++ ) {
                toAddresses[i] = new Address(emailto[i], emailto[i]);
            }
            //Adding Recipients address whose type is TO.
            msg.addRecipients(Message.RecipientType.TO, toAddresses);

emailto is a string array which stores email id's. m i going wrong ?? and i also want to send email to cc how to proceed for that

Thanks alot