How to Integrate 'premailer' with Rails

后端 未结 4 935
再見小時候
再見小時候 2021-01-02 07:12

How does one integrate the \'premailer\' gem with a Rails (3.0.7) project? I currently have in my mailer:

def welcome(user)
  @user = user

  mail to: user.e         


        
4条回答
  •  無奈伤痛
    2021-01-02 07:40

    Have a look at the simple premailer-rails gem I recently wrote. It uses Rails mailer hooks to do the conversion.

提交回复
热议问题