renz45 / mandrill_mailer

A small gem for sending Mandrill template emails
260 stars 84 forks source link

use mandrill_mailer with letter_opener for development enviroments #108

Closed nmenag closed 8 years ago

nmenag commented 8 years ago

it is posible?

renz45 commented 8 years ago

Hi there, Probably not possible, this gem is for interacting with the mandrill api, so there are no local templates. Letter_opener appears to just render normal html/text emails sent from rails, which means the html and assets are all local to rails.

Theoretically, with mandrill's api you could build a gem that pulls down all the templates from a mandrill account and renders the emails by using data provided by this gem. A preview like that is out of the scope of this gem sadly, since this is essentially an api wrapper that acts like a normal rails mailer.

renz45 commented 8 years ago

I forgot to mention, in development you can send test emails as documented here: https://github.com/renz45/mandrill_mailer#creating-a-test-method

This allows you to preview emails, while letting mandrill render them as you would see them.

nmenag commented 8 years ago

ok, thanks you