[Rails] Re: How to send a html email with attachment

2009-10-29 Thread srinivasan sakthivel
Hi U can try this. User_notifier: def method_name(email) @recipients = email @content_type = "text/html" attachment :content_type => "application/octet-stream", :filename => "User Manual.pdf", :body => File.read("public/User Manual.pdf") end T

[Rails] Re: How to send a html email with attachment

2009-10-28 Thread Frantisek Psotka
something like: This is example procedure - assuming that i want to send few pdfs attached with a html email - this is ordinary mailer method class ExampleNotify < ActionMailer::Base def example(_user, _attachments) recipients _user.email fromFROM subject 'example'