Hello,
I have some code for sending mails. The same worked perfectly on a
machine running rails version 1.2.5.
Now i have moved the entire application to another system which is
running rails 2.0.2 Whenever i try to send a mail i get an error
''execution expired''
Please go through the following code if you can figure out something
wrong. Do i need to change something for rails 2.0.2?
My mailer model is as follows:
class UserMailer < ActionMailer::Base
def send_mail(person,textarea,subject)
recipients person.email1
from "abc-9IKiO1iGCm/QT0dZR+AlfA@public.gmane.org"
subject subject
body textarea
content_type "text/html"
end
end
In the develeopment.rb i have the smtp settings as
.
.
.
# Check error if the mailer can''t send
config.action_mailer.raise_delivery_errors = true
#set delivery method to :smtp, :sendmail or :test
config.action_mailer.delivery_method = :smtp
#these options are only needed if you choose smtp delivery
config.action_mailer.smtp_settings = {
:address => "mail.domain.com",
:port => 25,
:authentication => :login,
:user_name =>
"abc-9IKiO1iGCm/QT0dZR+AlfA@public.gmane.org",
:password => ''123asd213''
}
Thank you.
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---