Send HTML emails with inline images with ActionMailer

前端 未结 2 763
执笔经年
执笔经年 2021-01-21 05:09

I have a simple ActionMailer class like this:

class MyMailer < ActionMailer::Base
  def mail(from, to, cc, bcc, subject, message, sent_at = Time.now)
    @sub         


        
相关标签:
2条回答
  • 2021-01-21 05:44

    If you are using rails3, it is dead easy, as explained in section 2.3.3 "Making Inline Attachments" in this ruby on rails guide

    0 讨论(0)
  • 2021-01-21 05:56

    have you seen: http://edgeguides.rubyonrails.org/action_mailer_basics.html#sending-emails-with-attachments for rails3

    and:

    http://guides.rubyonrails.org/action_mailer_basics.html#sending-emails-with-attachments

    for rails2

    0 讨论(0)
提交回复
热议问题