• Michael Olson 8
  • NEWBIE
  • 0 Points
  • Member since 2018

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 1
    Replies
Hi,

I am sending an email to a couple of contacts and got follwoing error,
System.EmailException: SendEmail failed. First exception on row 0; first error: EMAIL_ADDRESS_BOUNCED, The target object email address is currently marked as bounced.
Following is my apex code:

Messaging.SingleEmailMessage mail = new Messaging.SingleEmailMessage();
mail.setToAddresses(sendTo);
mail.setTemplateId(templateId.Id);
mail.setTargetObjectId(con.id);
mail.saveAsActivity = false;
mail.setWhatId(a.Id);
mails.add(mail);
Messaging.sendEmail(mails);

where sendTo is a list of string containing all email address.

Just wanted to know, will the contacts other than the one for which above error occured will receive email or SendEmail will fail for all contact in that list.

Thanks