Welcome Guest, Not a member yet? Register   Sign In
Email library - attach images that are part of body?
#1

[eluser]taewoo[/eluser]
Hi everyone.
How would I send images as attachments that I intend to display into the (body of the email (which would be displayed in HTML format, of course)..?
#2

[eluser]Thorpe Obazee[/eluser]
I don't think you can do that. (I think the email provider wouldn't let you know the location of attachments on their server.)

What you need to do is save those files on a different server and link to it from the HTML email.
#3

[eluser]taewoo[/eluser]
i noticed that if you do that, email providers like gmail and yahoo will block them out and ask the users if they want to unblock. but if you attach them, somehow they display correctly. maybe i'm wrong about this.. does anyone else have any experience with this?
#4

[eluser]darkhouse[/eluser]
You should not force the users to download and view your images, they should have the option to do so if they wish. Keep control in the user's hands, don't force anything upon them. All of the major companies send their newsletters this way, and you should too. If you're containing a lot of text content in your images because you want a special font, you need to redesign your emails. Use standard fonts, keep imagery to a minimum, and let the user decide whether or not to view the images.
#5

[eluser]sophistry[/eluser]
@taewoo... yes you can do this. look at swiftmailer http://www.swiftmailer.org/ and someone wrote an "extension" of the CI Email.php class to do this but it was a long time ago and it probably doesn't work, but it's worth a try:

http://codeigniter.com/wiki/Richmail/

these threads might help too:
http://ellislab.com/forums/viewthread/46712/
http://ellislab.com/forums/viewthread/46208/




Theme © iAndrew 2016 - Forum software by © MyBB