search for: create_test_mail

Displaying 1 result from an estimated 1 matches for "create_test_mail".

Did you mean: create_test_email
2006 Jul 15
1
ActionMailer and PDF Attachment and corrupt file?
...@subject = "My Subject" fileName = "#{RAILS_ROOT}/documents/test.pdf" attachment :content_type => "application/pdf", :content_disposition => "attachment", :body => File.read(fileName) I''m using the testMail = MyMailer.create_test_mail followed by MyMailer.deliver(testMail) process and the email is being sent, along with an attachment but the attachment is only about half of the actual original file size. The beginning part of the file appears to be correct - but for some reason, the entire file isn''t being sent....