Hi,
My objective:
1. to be able to change the sender (from) depending on the department.
2. Logos department must appear on the email.
Note:
- Base64 is working in k2 but if you are using a lower version of outlook and gmail, image will not appear.
- send email using workflow with image is perfectly working too.
-cid: with inline which is another format, the one I used has the same behavior but with lesser bytes on the email itself and images is not blocked on gmail.
Since I am using an Exchange email. I created a c# web service that sends email with 3 parameters (From, To, MessageBody). Then export it to K2 using endpoints to be used as SMO.
CreateAttachmentType attachmentRequest = new CreateAttachmentType();
attachmentRequest.Attachments = new AttachmentType[1];
attachmentRequest.Attachments[0] = fileAttach;
attachmentRequest.Attachments[0].IsInline = true;
attachmentRequest.Attachments[0].ContentId = FileName;
attachmentRequest.ParentItemId = emailResponseMessage.Items.Items[0].ItemId;
IsInline and contentid will retain the image in email body
so far it is working with our users.
base64 is reading from database with stored logo
cid is reading from specific directory from the server.
Hope it help, the least an idea.
Regards