I have insert in envirmonment.rb
ActionMailer::Base.delivery_method= :sendmail
and i have created a mailer model:
class MyMailer < ActionMailer::Base
def mail_authentication(user)
from "parlacon-5/2rP0BfB+s@public.gmane.org"
recipients user.mail
subject "| NERTO | Conferma Registrazione"
body :user => user
end
end
with his template
For sending a letter i have insert in a controller this:
MyMailer.deliver_mail_authentication(@user)
but the mail don''t is sent.
In the console there are no errors.
Why?
Where is the problem?
i try also with:
ActionMailer::Base.smtp_settings = {
:address => "smtp.nerto.it",
:port => 25,
:user_name => "parlacon-5/2rP0BfB+s@public.gmane.org",
:domain => "www.nerto.it",
:password => "*****",
:authentication => :plain
}
but it the same thing.
Thanks
--
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
-~----------~----~----~----~------~----~------~--~---