ryanb / letter_opener

Preview mail in the browser instead of sending.
MIT License
3.73k stars 238 forks source link

Add option to specify the App to open the HTML mail #118

Closed caesarsol closed 8 years ago

caesarsol commented 9 years ago

My OS X is configured to open .html files with Sublime Text, but I would like to open the e-mails in Chrome.

I've eamined the Lauchy configurations, but there's not a global config file and the Lauchy command in letter_opener is hardcoded: https://github.com/ryanb/letter_opener/blob/master/lib/letter_opener/delivery_method.rb#L24

Is there something I missed? Can I submit a :octocat: PR? :)

nashby commented 8 years ago

@caesarsol hey, can't you use launchy's global config using ENV['LAUNCHY_APPLICATION']?

caesarsol commented 8 years ago

hey @nashby, thanks! I've never found documentation of that env var, will try it asap.

could be useful to include in the README?

nashby commented 8 years ago

@caesarsol sure, can you please make a PR?