ActionMailer

software development

#1

Has anyone used ActionMailer with an RoR app yet? I have my settings in the environment.rb file. The setting look like:

ActionMailer::Base.delivery_method = :smtp
ActionMailer::Base.server_settings = {
:address => ‘mail.domainname.com’,
:port => 25,
:domain => ‘domainname.com’,
:user_name => ‘m9XXXXXX’,
:password => ‘XXXXXX’,
:authentication => :plain
}

I don’t get any error messages with this, but I also don’t receive the message. Anyone have experience with this?

Thanks
Clint


#2

I never used action mailer, but it looks like the address is wrong. Shouldn’t it be yourname@yourwebsite.com
Silk


#3

I tried that, but still no success.

Thanks for the idea though.


#4

I think you need to change :authentication => :plain to :authentication => :login

That works for me anyway…


#5

I got it to work with:

ActionMailer::Base.delivery_method = :sendmail

and no other server settings. I had to set the from field on the message for delivery to go through.
-chris