Forum: Radiant CMS Mailer Behavior on ASmallOrange

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.
BJ Clark (Guest)
on 2007-01-06 20:30
(Received via mailing list)
Anyone got the Mailer Behavior to work on ASmallOrange.com hosting?

I have the behavior installed and everything set up to what I think is
correct, but the form just reloads it's self (not thank-you) and I
never get an email. There doesn't seem to be any errors, all I can
find in any error logs is in production.log I get:

"Processing SiteController#show_page (for ******** at 2007-01-04
16:56:19) [POST]
  Parameters: {"mailer"=>{"message"=>"test test", "name"=>"me",
"subject"=>""}, "action"=>"show_page",            "url"=>["contact"],
"mailer_name"=>"contact", "controller"=>"site"}
Completed in 1.89603 (0 reqs/sec) | DB: 0.00087 (0%) | 200 OK
[http://www.mysite.com/content/contact]


My config part is this:

mailers:
  contact:
    subject: From Contact Form
    from: removed_email_address@domain.invalid
    redirect_to: /contact/thank-you/
    recipients:
      - removed_email_address@domain.invalid


Any suggestions?
Thanks,
BJ Clark
Sean C. (Guest)
on 2007-01-19 17:30
(Received via mailing list)
BJ,

Make sure you have set the ActionMailer settings in
config/environment.rb or
config/environments/production.rb .  You might need to set an SMTP
server to
use, rather than sendmail.

Sean
BJ Clark (Guest)
on 2007-01-19 17:30
(Received via mailing list)
Sean,
Here's what I have in config/environment.rb:
ActionMailer::Base.server_settings = {
  :address  => "domain.com",
  :port  => 25,
  :domain  => 'domain.com',
  :user_name  => "removed_email_address@domain.invalid",
  :password  => 'password',
  :authentication  => :login
}
(obviously this is obfuscated)
I have two questions here. What is :address and :username supposed to
be? Any ideas?
Thanks,
BJ
Michael R. (Guest)
on 2007-09-26 00:31
(Received via mailing list)
ah yes, authentication has caught me out a few times as well..
BJ Clark (Guest)
on 2007-09-26 00:38
(Received via mailing list)
Hello All,
I'm still un-able to get my contact page to work.
I am getting no errors in my production log. All that I can find that
related to the mailer is this:

Processing SiteController#show_page (for 165.127.53.190 at 2007-01-10
16:58:20) [POST]
  Parameters: {"mailer"=>{"message"=>"Test", "name"=>"BJ",
"subject"=>"", "email"=>"removed_email_address@domain.invalid"}, 
"action"=>"show_page",
"url"=>["contact"], "mailer_name"=>"contact", "controller"=>"site"}
Completed in 0.01511 (66 reqs/sec) | DB: 0.00077 (5%) | 200 OK
[http://www.scidept.com/content/contact]

The problem is that I'm not getting any email and it's not forwarding
to my /contact/thank-you page, it just goes back to a blank /contact/
page.

Anyone have any ideas?
Thanks,
BJ Clark
Michael R. (Guest)
on 2007-09-26 00:46
(Received via mailing list)
Hi BJ,

Just out of interest, does it work under development mode on the same
server?
I was having a similar issue, where it works fine in dev mode, but not
in production mode. I havent managed to get t resolved yet..

http://www.ruby-forum.com/topic/91276#180017
BJ Clark (Guest)
on 2007-09-26 00:48
(Received via mailing list)
Michael,
It's not working under dev, but I finally got an error (ya!).
It's not authenticating properly, so I've contact my hosting provider
to see what they have to say about it.
If I figure anything out, I'll post it here.
BJ
This topic is locked and can not be replied to.