timmyg / meteor-mandrill

Meteor package for sending email via Mandrill
18 stars 19 forks source link

Please explain how to use the API method #6

Closed rootedsoftware closed 10 years ago

rootedsoftware commented 10 years ago

How can I call the API template send from the client side?

I don't see a method for sending email when using the API approach.

andrewdhazlett commented 10 years ago

Since mandrill.js is only available on the server you will have to write a meteor method as a bridge.

Alternatively, fork and export to both the client and server. Note that if you do this HTTP.post can only be called from the client with an asynchronous callback. http://docs.meteor.com/#http_call