It seems that someone asked this before, but the question was deleted.
I am sending an email with 1..* file attachments to a contact.Id that is specified in a custom setting.
When I specify a contact.Id that has an email of a non-distribution list email address, the email and attachments are sent to the recipient. However, when I change this to an email address which is a distribution list, the email is NOT sent to the contact.
Can someone share some detail on why this is, and how I can get around this? I understand email cannot be sent to more than 100 contacts via apex with the Messaging.MassEmailMessage class method. But I am referencing only 1 contact in the custom setting.
I am also confused with the email log result because I have checked in the email logs, and 'R' is denoted in the 'Mail Event' column (indicating that the email was successfully sent). Despite this, the mail has not been received by the distribution list recipients.
For now, as a workaround, I'm sending the email to a non distribution list email address, and forwarding that onwards to the distribution list via an Outlook rule.