<objects> in PHP built E-mails.

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Gen-ik
DevNet Resident
Posts: 1059
Joined: Mon Aug 12, 2002 7:08 pm
Location: London. UK.

<objects> in PHP built E-mails.

Post 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 :)
junky
Forum Commoner
Posts: 30
Joined: Wed Sep 03, 2003 3:58 pm

Post 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.
Gen-ik
DevNet Resident
Posts: 1059
Joined: Mon Aug 12, 2002 7:08 pm
Location: London. UK.

Post 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.
Post Reply