search for: create_test_email

Displaying 3 results from an estimated 3 matches for "create_test_email".

2008 May 03
2
backgroundrb / actionmailer / sendmail
...stem log, nothing in the backgroundrb logs at all, nothing in the production log. Below is my code for each component worker: class QuizReviewerWorker < BackgrounDRb::MetaWorker set_worker_name :quiz_review_sender def create(args = nil) end def send_review_emails mail = Notifier.create_test_email status = Notifier.deliver(mail) logger.info ''test mail:'' + mail.body end end mailer: class Notifier < ActionMailer::Base def test_email recipients ''kapelner at gmail.com'' subject ''test email'' body ''body of...
2006 Jul 15
1
ActionMailer and PDF Attachment and corrupt file?
Community, I''m struggling with an issue and I''m sure it is trivial but I cannot find the solution. I''m trying to attach a PDF file to an email. For simplicity, I have explicitely named a given file but when I get the email, the attachment is only a partial of the document which causes it to be corrupt. Sample below: @recipients =
2006 May 05
5
Attach a PDF File to an Email
Hello ~ I have an email that I need to attach a PDF to. The email is being sent, and a file is attached but it is not the original file. I am following the example: attachment :content_type => "image/jpeg", :body => File.read("an-image.jpg") changing it to: attachment :content_type => "application/pdf", :body => File.read("pdf/my.pdf")