Page 1 of 1

<objects> in PHP built E-mails.

Posted: Mon Sep 29, 2003 5:23 pm
by Gen-ik
Today has been a good day. I decided to get to grips with OOP and after 8 hours of sitting in front of the keyboard with a load of coffee and smokes I have created my own Mime E-mail class.... which is nice.

The class does more or less everything (plain-text, HTML, attachments, embeded images, etc) but I'm having trouble with <objects> within HTML based e-mails.

I guess the question is do I treat them like images or leave them as they are?

For example let's say I have a Flash movie (swf) in the actual HTML page, do I add it to the e-mail object in the same way as you do with images, or do I need to leave the 'src' or 'path' of the actual movie pointing towards my web site using something like "http://www.blabal/themovie.swf"?

Any help would be great :)

Posted: Mon Sep 29, 2003 5:28 pm
by junky
its would be clearer for everyone if ya can past some code of ur class, no?
i hope its too private for ya can post it here.

Posted: Mon Sep 29, 2003 6:26 pm
by Gen-ik
:D Sorted it! :D

You can indeed embed Flash movies into the E-mail the same way that you can embed images (multipart/mixed) and it all works fine.
I basically just scan the HTML for Flash the same way I do for images and so far (fingers crossed) it's all working as it should.

Gen-ik gives OPP a big thumbs-up.