you can try running another server in development mode.  The dev mode log is alot better for debugging mail problems.  you can also use this site to try out code changes as well, or for holding off on big site changes...

On 10/11/06, Nathan Donaldson <[EMAIL PROTECTED]> wrote:
Hi all,

I have the mailer behavior installed, but it is not working. Anyone have
any idea what I am doing wrong?

I have the following parts in my page:

*Body*
<r:mailer:form name="contact">
    <r:mailer:hidden name="subject" value="Email from my Radiant site!"
/>
    <r:mailer:text name="nameuu" />
    <r:mailer:text name="emailuu" />
    <r:mailer:textarea name="comments"></r:mailer:textarea>
    <r:mailer:submit value="Send" />
    <r:mailer:reset />
</r:mailer:form>

*config*
mailers:
  contact:
    subject: From SonarHQ
    from: [EMAIL PROTECTED]
    redirect_to: /contact/thank-you
    recipients:
      - [EMAIL PROTECTED]

*email*
Name: <r:mailer:get name="nameuu" />
Email:  <r:mailer:get name="email" />
Comments:  <r:mailer:get name="comments" />

I have added the following to environment.rb:
ActionMailer::Base.server_settings = {
  :address        => "mail.sonarhq.com",
  :port           => 25,
  :domain         => " sonarhq.com"
}

and have stopped actionmailer from being excluded in this file

In my logs I get the following when I submit:

Processing SiteController#show_page (for x.x.x.x at 2006-10-12 15:20:51)
[POST]
  Parameters: {"mailer"=>{"name"=>"test", "comments"=>"test",
"email"=>"test"}, "action"=>"show_page", "url"=>["contact"],
"mailer_name"=>"test_form", "controller"=>"site"}
Completed in 0.03576 (27 reqs/sec) | DB: 0.00648 (18%) | 200 OK
[http://dev.sonarhq.com/contact/ ]

--
Posted via http://www.ruby-forum.com/.
_______________________________________________
Radiant mailing list
Post:   [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant

_______________________________________________
Radiant mailing list
Post:   [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant

Reply via email to