What is the difference between SingleEmailMessage and MassMailMessage
SingleEmailMessage MassMailMessage The SingleEmailMessage can send message related to only single record. MassEmailMessage can send mails related to multiple records (WhatId and TargetObjectId). setTargetObjectId - The ID of the contact, ....