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
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'
2 matches
Mail list logo