Does ARMailer work in Rails 2.3 ?!

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

The branch from adzap (Adam Meehan) Ā· GitHub works in 2.3.

Sean McGilvray
Executive Director
Identity Theft Specialist
Pre-Paid Legal Serviceā€™s, Inc. NYSE:PPD
Phone: 760-486-1019
[email protected]
http://www.transferhome.net

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
adzap (Adam Meehan) Ā· GitHub 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
[email protected]
http://www.transferhome.net

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
[email protected]
http://www.transferhome.net

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)

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
[email protected]
http://www.transferhome.net

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

Ok, I will do that - thanks!

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ā€¦

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