{"action":"created","issue":{"url":"https://api.github.com/repos/VeliovGroup/Meteor-Mailer/issues/3","labels_url":"https://api.github.com/repos/VeliovGroup/Meteor-Mailer/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/VeliovGroup/Meteor-Mailer/issues/3/comments","events_url":"https://api.github.com/repos/VeliovGroup/Meteor-Mailer/issues/3/events","html_url":"https://github.com/VeliovGroup/Meteor-Mailer/pull/3","id":101287882,"number":3,"title":"pass object to send function","user":{"login":"satyavh","id":3264269,"avatar_url":"https://avatars.githubusercontent.com/u/3264269?v=3","gravatar_id":"","url":"https://api.github.com/users/satyavh","html_url":"https://github.com/satyavh","followers_url":"https://api.github.com/users/satyavh/followers","following_url":"https://api.github.com/users/satyavh/following{/other_user}","gists_url":"https://api.github.com/users/satyavh/gists{/gist_id}","starred_url":"https://api.github.com/users/satyavh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/satyavh/subscriptions","organizations_url":"https://api.github.com/users/satyavh/orgs","repos_url":"https://api.github.com/users/satyavh/repos","events_url":"https://api.github.com/users/satyavh/events{/privacy}","received_events_url":"https://api.github.com/users/satyavh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-08-16T18:49:07Z","updated_at":"2015-08-20T07:14:24Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/VeliovGroup/Meteor-Mailer/pulls/3","html_url":"https://github.com/VeliovGroup/Meteor-Mailer/pull/3","diff_url":"https://github.com/VeliovGroup/Meteor-Mailer/pull/3.diff","patch_url":"https://github.com/VeliovGroup/Meteor-Mailer/pull/3.patch"},"body":"Pass object to send function, instead of values, as proposed\r\nRemove Assets.getText dependency (this is not working in package) and pass in template as an asset string (by calling Assets.getText from server).\r\n\r\nSo now you need to call like this:\r\n\r\n```\r\n    Meteor.mail.send \r\n      to: invite.name + '<' + invite.email + '>',\r\n      subject: name + \" invited you to join Pipetracker.\"\r\n      helpers:\r\n        inviter: name\r\n        role: invite.role\r\n        inviteUrl: baseUrl + 'register/' + invite.token\r\n        btnText: \"Get started\"\r\n      template: Assets.getText 'Pipetracker.html'\r\n```"},"comment":{"url":"https://api.github.com/repos/VeliovGroup/Meteor-Mailer/issues/comments/132914990","html_url":"https://github.com/VeliovGroup/Meteor-Mailer/pull/3#issuecomment-132914990","issue_url":"https://api.github.com/repos/VeliovGroup/Meteor-Mailer/issues/3","id":132914990,"user":{"login":"satyavh","id":3264269,"avatar_url":"https://avatars.githubusercontent.com/u/3264269?v=3","gravatar_id":"","url":"https://api.github.com/users/satyavh","html_url":"https://github.com/satyavh","followers_url":"https://api.github.com/users/satyavh/followers","following_url":"https://api.github.com/users/satyavh/following{/other_user}","gists_url":"https://api.github.com/users/satyavh/gists{/gist_id}","starred_url":"https://api.github.com/users/satyavh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/satyavh/subscriptions","organizations_url":"https://api.github.com/users/satyavh/orgs","repos_url":"https://api.github.com/users/satyavh/repos","events_url":"https://api.github.com/users/satyavh/events{/privacy}","received_events_url":"https://api.github.com/users/satyavh/received_events","type":"User","site_admin":false},"created_at":"2015-08-20T07:14:24Z","updated_at":"2015-08-20T07:14:24Z","body":"Yes, I already told you that :-)\r\n\r\n> Another thing that's not working: the callback. You can't just store a .js function in a Mongo collection, it will be dropped and not saved. Read more here\r\n\r\nhttps://docs.mongodb.org/v3.0/tutorial/store-javascript-function-on-server/"}}