javascript - How to send email on Adobe Air + backbone.js application -


i have developed web application using adobe air , backbone.js. i'm using jade template create contact form. jade code of form below:

div.span6.span_col_2.custom_span6#rightcontact             div.well.well-large.well-custom                 form.form-horizontal                     fieldset                         input(type="hidden" name="type_contact" value="")                         - inco = { fkey:"contact_description" }                         include field_textarea_val                         - inco = { fkey:"contact_email" }                         include field_text_val                         - inco = { fkey:"contact_phone" }                         include field_text_val                         a#sendbtn.btn.btn-warning( imsg="send", href="#rwsendcontact" ) 

when user click send button, content input fields send controller. please @ controller code below:

var contactrouter = backbone.router.extend(     {         routes:             {                 "rwsendcontact": "sendcontact"             },         sendcontact: function(){             var values = getfieldvaluesincontact();             var service_id = 'myservice';             var template_id = 'welcome';             var template_params = {                   name: 'john',                   reply_email: 'myemail@yahoo.com',                   message: 'this awesome!'             };             emailjs.send(service_id,template_id,template_params);         }     });  var contact = new contactrouter(); 

from line emailjs.send(service_id,template_id,template_params);, want library can me send email. can guys give me suggestion library can use archive this?

regards,


Comments

Popular posts from this blog

Sass watch command compiles .scss files before full sftp upload -

filehandler - java open files not cleaned, even when the process is killed -

gridview - Yii2 DataPorivider $totalSum for a column -