I am using a Canvas on which user draws. And i do have a E-Mail link beside it I want that when the E-Mail is clicked the canvas is coverted in to image and that image is to be e-mailed as a attachment.
So far i've converted the canvas in to image using
var image = canvas.toDataURL();
It gives a base64 encoded image.
On E-Mail link
<a href="mailto:abc@domain.com?subject=my report&body=see attachment&attachment="image" ">E-Mail</a>
But this gives me the base64 encoded string in the body of the mail.
Is there any way out to attach the image as a attachment in mail using javascript,php,jquery or anything else??