I've been working on this and it seemed to be working at first but I've found it doesn't work with all email clients. I can place images in the ckeditor content and send it as an email, but without attaching the image to the email, it only shows a broken image in most email clients. So, I guess I need to attach the images from the body of my document to the email message in my c# code. Does anyone have a good way to do this or should I just search the string and attach them using substrings?
Tue, 04/27/2010 - 20:39
#1
Re: Images to Email
Re: Images to Email
Do you have absolute urls in the email ( starting with http:// )?
Also does people have access to these images without logging in to your site?
You could embed the images as string attachments to your email, but in my opinion its easier to fetch them from the original server (and group mails inside company will not bloat your mailserver).
You could try embedding images straight into html http://dean.edwards.name/weblog/2005/06/base64-ie/ but it will not work in IE6.
Also remember to inline all your css http://www.pelagodesign.com/sidecar/emogrifier/
Re: Images to Email
Also, it will generally make the output more comaptible with Email clients...