Save and email an image or a link from javascript mode

PerPer
edited October 2013 in JavaScript Mode

Hi!

I want to be able to save an image in a javascript canvas as vector (for example svg) and email the link to the image or the image as an attachment from a javascript mode. a sketch runned from the web.

I want something similliar to the "postToWeb" library but with functionality online though the javascript mode as well. and with possibility to email.

any hint?

thanks

Answers

  • As I already wrote two times, it is just not possible with standalone JavaScript. See your other threads for details...

    At best, you might be able to activate a mailto: link to open a send mail window from the local user's e-mail software (if they have one!), but I doubt you can attach something this way.

    As quark pointed out, it can be done if you have a server on which you have enough control to be able to send an e-mail via PHP. In this case, you can send an Ajax request to this server to make it send the mail. Not trivial...

Sign In or Register to comment.