bborn / lewsnetter

E-mail marketing application (create and send e-mail newsletter via SES). Includes subscription management, delivery, bounce and complaint notification, templates, and some stats.
MIT License
318 stars 42 forks source link

Sending test campaign as html email is showing up blank #11

Closed georgecheng closed 7 years ago

georgecheng commented 7 years ago

I'm trying out lewsnetter, but I've been having trouble getting preview html emails to work. After creating a template, mailing list, and campaign, I tried 'Send Preview Campaign' but I get blank emails. The plain text email is there though. (I'm using letter_opener to view emails)

I think I've narrowed it down to this line: https://github.com/bborn/lewsnetter/blob/master/app/models/campaign.rb#L118

self.content_json is always blank, so body_html of Campaign is being read, which is nil.

Any ideas?