Re: email - inline image

2012-02-21 Thread ionic drive
Tom, you are totally right! The problem was me - not google ;-) I knew that. Did not know what I am looking for. I am sorry! & thank you very much Tom! Cheers ionic On Tue, 2012-02-21 at 14:23 +, Tom Evans wrote: > On Tue, Feb 21, 2012 at 2:18 PM, ionic drive wrote: > > Thx Tom, > > > >

Re: email - inline image

2012-02-21 Thread Tom Evans
On Tue, Feb 21, 2012 at 2:18 PM, ionic drive wrote: > Thx Tom, > > as you guess I have already googled quite a lot. > 5hours. > My search was kind of "django inline image email" and subcultures. > And I actually found some techniques ... but I guess your approach is > best. > FYI, the link I refe

Re: email - inline image

2012-02-21 Thread ionic drive
me multipart email". So for all future searchers: If you are interested in "django email inline image" or "django email embedded image" please search for "django mime multipart email". http://stackoverflow.com/questions/1633109/creating-a-mime-email-template-w

Re: email - inline image

2012-02-21 Thread Tom Evans
On Tue, Feb 21, 2012 at 12:42 PM, ionic drive wrote: > Hello djangos, > > I want to add a *.jpg image to an html-formated/email signature. > > I am not sure if this approach is correct, please help: > > image_file = open(settings.PROJECT_ROOT+'/static/images/image_name.jpg', > 'rb') #get the image

email - inline image

2012-02-21 Thread ionic drive
Hello djangos, I want to add a *.jpg image to an html-formated/email signature. I am not sure if this approach is correct, please help: image_file = open(settings.PROJECT_ROOT+'/static/images/image_name.jpg', 'rb') #get the image file msg_image = MIMEImage(image_file.read()) #with proper MIME t