search for: test_email

Displaying 4 results from an estimated 4 matches for "test_email".

2008 May 03
2
backgroundrb / actionmailer / sendmail
...g, 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...
2011 Dec 12
1
Errno::ECONNREFUSED (Connection refused - connect(2)): sending email in production
...omain.com",:portĀ  => 587,:domainĀ  => "mydomain.com",:authentication => :login, :user_name => "myself-3Q2Tfjf0mexWk0Htik3J/w@public.gmane.org",:password => "xxxxxxxxxxxx",:enable_starttls_auto => false} class MyMailer < ActionMailer::Base def test_email @recipients = "myself-BUHhN+a2lJ4@public.gmane.org" @from = "noreply-3Q2Tfjf0mexWk0Htik3J/w@public.gmane.org" @subject = "this is a subject" @body = "this is the body" end end >> MyMailer::deliver_test_email is delivering fine this test email...
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")