Forum: Ruby on Rails Does ARMailer work in Rails 2.3 ?!

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
460ead051b49c0b2a8e45e46252d4bda?d=identicon&s=25 Tom Ha (tom)
on 2009-03-31 16:25
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
:-(

Thanks for any hint !
Tom
536253930b065b5a5e8ff9b204c85001?d=identicon&s=25 Sean McGilvray (Guest)
on 2009-03-31 16:28
(Received via mailing list)
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
smcgilvray@prepaidlegal.com
http://www.transferhome.net
536253930b065b5a5e8ff9b204c85001?d=identicon&s=25 Sean McGilvray (Guest)
on 2009-03-31 16:30
(Received via mailing list)
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
smcgilvray@prepaidlegal.com
http://www.transferhome.net
460ead051b49c0b2a8e45e46252d4bda?d=identicon&s=25 Tom Ha (tom)
on 2009-03-31 18:09
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
536253930b065b5a5e8ff9b204c85001?d=identicon&s=25 Sean McGilvray (Guest)
on 2009-03-31 18:19
(Received via mailing list)
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
smcgilvray@prepaidlegal.com
http://www.transferhome.net
460ead051b49c0b2a8e45e46252d4bda?d=identicon&s=25 Tom Ha (tom)
on 2009-03-31 18:28
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)
536253930b065b5a5e8ff9b204c85001?d=identicon&s=25 Sean McGilvray (Guest)
on 2009-03-31 18:31
(Received via mailing list)
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
smcgilvray@prepaidlegal.com
http://www.transferhome.net
460ead051b49c0b2a8e45e46252d4bda?d=identicon&s=25 Tom Ha (tom)
on 2009-03-31 20:20
Ok, I will do that - thanks!
460ead051b49c0b2a8e45e46252d4bda?d=identicon&s=25 Tom Ha (tom)
on 2009-04-01 14:53
Attachment: ar_mailer_patch.rb (218 Bytes)
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
12c2fd4af26471839247e73ff741f4d7?d=identicon&s=25 Anu Sebastian (anu)
on 2011-05-10 12:44
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...
This topic is locked and can not be replied to.