public static bool AttachEmail(this IEmailService service, int contactId, string fromName, string fromAddress,
                                string toAddress, string ccAddresses, string bccAddresses,
                                ContentType contentType, string subject, string htmlBody, string textBody,
                                string header, string receivedDate, string sentDate, EmailSentType emailSentType)
 {
     return service.AttachEmail(contactId,
                                fromName,
                                fromAddress,
                                toAddress,
                                ccAddresses,
                                bccAddresses,
                                contentType.ToString(),
                                subject,
                                htmlBody,
                                textBody,
                                header,
                                receivedDate,
                                sentDate,
                                (int) emailSentType);
 }
 public static bool AttachEmail(this IEmailService service, int contactId, string fromName, string fromAddress,
                                string toAddress, string ccAddresses, string bccAddresses,
                                ContentType contentType, string subject, string htmlBody, string textBody,
                                string header, string receivedDate, string sentDate, EmailSentType emailSentType)
 {
     return(service.AttachEmail(contactId,
                                fromName,
                                fromAddress,
                                toAddress,
                                ccAddresses,
                                bccAddresses,
                                contentType.ToString(),
                                subject,
                                htmlBody,
                                textBody,
                                header,
                                receivedDate,
                                sentDate,
                                (int)emailSentType));
 }