global class Messaging { /** * Convert a value containing a raw RFC822 email stream into a new InboundEmail instance. Typically used with message/rfc822 binary attachments. */ global static Messaging.InboundEmail extractInboundEmail(Object source, Boolean includeForwardedAttachments) { } global static List renderEmailTemplate(String whoId, String whatId, List bodies) { } global static Messaging.SingleEmailMessage renderStoredEmailTemplate(String templateId, String whoId, String whatId, Object attachmentRetrievalOption, Boolean updateEmailTemplateUsage) { } global static Messaging.SingleEmailMessage renderStoredEmailTemplate(String templateId, String whoId, String whatId, Object attachmentRetrievalOption) { } global static Messaging.SingleEmailMessage renderStoredEmailTemplate(String templateId, String whoId, String whatId) { } /** * Reserve capacity to send mass emails. */ global static void reserveMassEmailCapacity(Integer count) { } /** * Reserve capacity to send single emails. */ global static void reserveSingleEmailCapacity(Integer count) { } /** * Send email. */ global static List sendEmail(List emailMessages, Boolean allOrNothing) { } /** * Send email. */ global static List sendEmail(List emailMessages) { } /** * Send EmailMessage. */ global static List sendEmailMessage(List emailMessagesIds, Boolean allOrNothing) { } /** * Send EmailMessage. */ global static List sendEmailMessage(List emailMessagesIds) { } }