Does ARMailer work in Rails 2.3 ?!


#1

Hi,

can anyone tell me :

a) IF ARMailer works in Rails 2.3, and
b) HOW to make it work? (Anything special to do or to think about?)

-> I have recently upgraded to Rails 2.3 and ARMailer stopped saving the
emails to the database table (they show up in the log though).

I guess I should have waited a few months before doing that Rails ugrade
:frowning:

Thanks for any hint !
Tom


#2

The branch from http://www.github.com/adzap works in 2.3.

Sean McGilvray
Executive Director
Identity Theft Specialist
Pre-Paid Legal Service’s, Inc. NYSE:PPD
Phone: 760-486-1019
removed_email_address@domain.invalid
http://www.transferhome.net


#3

It is not the Rails version that is the problem. It is the upgrade to
Ruby
1.8.7 or higher that is causing the problem. If you us the
http://www.github.com/adzap branch you will be able to get up and
running.

Sean McGilvray
Executive Director
Identity Theft Specialist
Pre-Paid Legal Service’s, Inc. NYSE:PPD
Phone: 760-486-1019
removed_email_address@domain.invalid
http://www.transferhome.net


#4

I know you switched to the new adzap. Did you follow there instructions
to
getting it up and running that are on the page. It is a little
different
than the original.

Sean McGilvray
Executive Director
Identity Theft Specialist
Pre-Paid Legal Service’s, Inc. NYSE:PPD
Phone: 760-486-1019
removed_email_address@domain.invalid
http://www.transferhome.net


#5

I actually did everything they say on their page - except for:

  • “Create a new migration”
    (since my “old” db table is already there + I assume it remains the
    same)

  • “Create a new model”
    (since my “old” model already exists + I assume it remains the same)

  • “Then to run it: $ ar_sendmail”
    (since I don’t even get to the point where the emails should be stored
    in the db)


#6

ADZap has a ticketing system at adzap.lighthouseapp.com that will allow
you
to submit a ticket and he is really quick about replying. Make sure to
put
in your code and traces that you check how to put those in with the
format
helper section.

Sean McGilvray
Executive Director
Identity Theft Specialist
Pre-Paid Legal Service’s, Inc. NYSE:PPD
Phone: 760-486-1019
removed_email_address@domain.invalid
http://www.transferhome.net


#7

Thanks a lot for your replies!

Unfortunately, I couldn’t get it to work

  • no error message whatsoever (log, etc.)
  • emails are printed entirely in the log
  • emails are not stored in the database table
  • even if I set delivery_method = :smtp, the emails are not sent

If anyone has an idea why, I’d be really happy to hear about it…

I have:

  • ruby 1.8.7 (2008-08-11 patchlevel 72) [i486-linux]
  • Rails 2.3.2
  • switched from the original ar_mailer gem to the adzap-ar_mailer gem

#8

Ok, I will do that - thanks!


#9

Tom Ha wrote in post #800549:

Here’s the solution for those of you who will encounter the same issue
(“the class reloading issue”):

Drop the file attached (ar_mailer_patch.rb) into you initializers
folder.

The file uses the explicit Email class name instead of the class
variable, to create the email record.

Kudos to Adam Meehan (adzap-ar_mailer) for providing the solution!
Tom

Thanks a lot for this post. I have been facing issues with ar_mailer and
now able to make it work with the file you provided
(ar_amiler_patch.rb). Thanks a lot…


#10

Here’s the solution for those of you who will encounter the same issue
(“the class reloading issue”):

Drop the file attached (ar_mailer_patch.rb) into you initializers
folder.

The file uses the explicit Email class name instead of the class
variable, to create the email record.

Kudos to Adam Meehan (adzap-ar_mailer) for providing the solution!
Tom