Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to embed functionality into HTML email?

We want to let users click a thumbs up or thumbs down button from an HTML email, without causing the clicking to open a browser window.

Is there a way to essentially embed limited web functionality (i.e., clicking an icon, showing confirmation) within HTML emails?

Thanks!

like image 925
Crashalot Avatar asked Mar 25 '10 23:03

Crashalot


People also ask

How do I embed content in an email?

Start your email application and begin a new message. For most email programs, click the “Insert” option to choose the file and embed it into the message.

Can I embed JavaScript in an email?

With HTML in your email, you can format the text, incorporate images, and do most of the same things in the email that you can do in a web page. As you can incorporate JavaScript into HTML in a web page, you can of course similarly incorporate JavaScript into HTML in an email.


1 Answers

I'm afraid such functionality, while theoretically possible, wouldn't be very practical given that most email clients strip out or disable JavaScript in order to prevent malicious code execution or other security issues. Your best bet is to use an image that looks like the thumbs up or thumbs down and then links directly back to your website. The browser window will still need to be opened, but you'll at least achieve the main part of your goal.

like image 136
Levi Hackwith Avatar answered Oct 06 '22 08:10

Levi Hackwith