Hi! i continue developing TiddlyWiki shop http://novye-podarki.ru/heeg.html . 
I wanted to sent orders to client's and shop's mail without using PHP so i 
have found a very nice Mandrill code 
    
  var xmlhttp = (window.XMLHttpRequest) ? new XMLHttpRequest() : new 
ActiveXObject("Microsoft.XMLHTTP");
xmlhttp.open('POST', 'https://mandrillapp.com/api/1.0/messages/send.json');
xmlhttp.setRequestHeader('Content-Type', 'application/json;charset=UTF-8');
xmlhttp.onreadystatechange = function() {
    if (xmlhttp.readyState == 4) {
        if(xmlhttp.status == 200) alert('На вашу почту отправлен заказ!')
        else if(xmlhttp.status == 500) alert('Проверьте ключ Api Mandrill')
        else alert('Ошибка отправки');
    }
}
xmlhttp.send(JSON.stringify({'key': mandrillapikey,
   'message': {
       'from_email': mailsite,
       'to': [{'email': mailsite, 'type': 'to'},{'email': mailclient, 'type'
: 'to'}] ,
       'autotext': 'true',
       'subject': 'Ваш заказ',
       'html': tablezakaz
    }}));


you can test this code if you make order in my demo shop .

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.

Reply via email to