Sha256: 36f3b97562fd36afa5c4e02de516796130650580af740955110d5150b8439093

Contents?: true

Size: 323 Bytes

Versions: 6

Compression:

Stored size: 323 Bytes

Contents

class DecoratedMailer < Jpmobile::Mailer::Base
  default from: 'info@jp.mobile'
  default to: 'info@jp.mobile'

  def deco_mail(to_mail)
    attachments.inline['photo.jpg'] = File.open(File.join(Rails.root, 'spec/fixtures/mobile_mailer/photo.jpg')).read

    mail(to: to_mail, subject: '題名', decorated: true)
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
jpmobile-5.2.5 test/rails/overrides/app/mailers/decorated_mailer.rb
jpmobile-5.2.4 test/rails/overrides/app/mailers/decorated_mailer.rb
jpmobile-5.2.3 test/rails/overrides/app/mailers/decorated_mailer.rb
jpmobile-5.2.2 test/rails/overrides/app/mailers/decorated_mailer.rb
jpmobile-5.2.1 test/rails/overrides/app/mailers/decorated_mailer.rb
jpmobile-5.2.0 test/rails/overrides/app/mailers/decorated_mailer.rb