xolvio / meteor-email-stub

Allows you to inspect sent emails and assert on their content.
MIT License
18 stars 3 forks source link

Support for MailDev pass-thru? #4

Open thebarty opened 7 years ago

thebarty commented 7 years ago

Hi guys,

I just found https://github.com/djfarrelly/MailDev, which is a really cool tool to preview emails in a browser. I'd love to be able to use it in my tests in combination with this package.

Do you think you can introduce the option to pass through the email to the original Email.send (while still having the email available via let emails = server.call('emailStub/getEmails')?

thebarty commented 7 years ago

So this here would do the job

Right after https://github.com/xolvio/meteor-email-stub/blob/master/email.js#L12

Email.__send(options)