+ Start a Discussion
Lee_CampbellLee_Campbell 

Is there a way to capture outbound email message IDs?

I've set up a class that sends an email to email addresses stored as fields within a custom object. The way the class works is that it queries for the custom objects that have "expired" and emails to everyone on this list of addresses. I want their responses to be recorded directly against the object, so, I was thinking I'd need a means of recording the outbound email ID, storing it and seeing what the inReplyTo feild contained in any inbound messages to match them back up to the correct record entry of the custom object. Any ideas how I can record these outbound message IDs? I can't seem to find an API name for them in the documentation.

 

Thanks,

Lee