HI, i am using ckeditor 4.4 to create html emails. I am sending a post request with the html to my server which then deliver the email.
The main problem is with images. I can drag and drop images to the editor and when i do CKEDITOR.instances.getData() then it gives me html codes of the textarea which is replaced by the editor.
The problem comes here: it gives me embedded base64 for the img element but i want to convert it into cid's and send it to my server so that server can send images with the email.
If i send embedded img with base64 to the server it works fine but the email images are not shown in the yahoo,gmail etc but works fine in email programs like icedove etc..
Is there anyway so that i can get html source with cid at the editor level instead of converting base64 to cid at my server.
Thanks
There is a particular syntax
There is a particular syntax for MIME enclosures which indicates the enclosures are to form part of the message rather than being offered as attachments. Some mailreaders will display images inline even if an attachment mimetype is used. Which, I suspect, is why it works in some cases but not in others.
Don't recall the exact details offhand, but that should point you in the right direction.
Yes,
Yes,
Thats why now i am going to convert base64 to an image file and gonna store it on my server and then I will replace img tag src with 'cid' and send it to server with cid/image as attachments
thanks