0

I have a photo frame designer. The user can select different options for their photo frame and they will be reflected in a visual svg-powered graphic. I need the options the user has selected to be saved and then passed on to the manufacturer. The most obvious way to me is to store their choices in javascript variables and then when an order button is pressed these variables are sent to the manufacturer's email. How achievable is this? And how does the email part work? Here is a snippet of code.

$(document).ready (function() {
$('#purple').click (function() {
        $(".border").css("fill", "#763d81");
        var frameColour = "purple";
});
});
dunn_rite
  • 41
  • 7
  • DNS MX query to the destination address to get what smtp server you have to contact. Contact it. Send the email. – Paolo.Bolzoni Mar 09 '15 at 08:51
  • Quick Google shows the question already asked: http://stackoverflow.com/questions/7381150/how-to-send-an-email-from-javascript. As @Rajesh mentioned this is typically a server side problem but you can open a local mail client to do it. – Dan Saunders Mar 09 '15 at 08:53
  • oh right. Thanks. Their answer was really useful. – dunn_rite Mar 10 '15 at 08:29

1 Answers1

0

Sending email is a server side functionality..You can check out your server side API for this. Ex: Java mail API http://www.oracle.com/technetwork/java/javamail/index.html

Rajesh
  • 2,934
  • 8
  • 42
  • 71