function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
SupervedisSupervedis 

Logging sent emails in Activity History related list

I have a custom object [Match__c] which is related to the Contact SObject through a lookup. There's a button in the custom object [Match__c] called 'Send Email To Client', on clicking this button am presented with a visual force page that enables me fill in the details such as the subject, From, To e.t.c prior sending the email. The 'To' field is a lookup to the Contact object whereby in the event a contact is picked, the contact's email is populated in the field. My question is, how do I make the email that is send reflect under the 'Activity History' related list  of the Contact SObject as the email is send from the 'Match__c' custom object.