PDA

View Full Version : How can I add an image to the email body in actionscript ?


aneuryzma
01-27-2009, 01:04 PM
I want to send an email with the image through URLRequest.

How can I add the image to the email body ?

Something like this:

var request:URLRequest = new URLRequest("mailto:"+to.text+"?subject="+subject.text+"&body="+body.text+"&Attachment="+myBmp);


thanks

matbury
01-27-2009, 01:46 PM
In a short answer, no, it's not easily do-able. If you're handy with PHP, you could use Flash Remoting (AMFPHP, Zend_AMF or WebOrb) to send the BitmapData to a script that could write it to a file and then include that as an embedded image in the body text of the email message.

Anyone else got any ideas?