Hi,
I installed RadiantCMS 9.0, I configured actionMailer and created a
example form, now my problem is that the form is not doing anything on
submission. Going into the production log I see :
Processing MailController#create (for 72.139.69.1 at 2010-09-10
13:53:50) [POST]
Parameters: {"page_id"=>"6", "action"=>"create",
"mailer"=>{"company"=>"Allanmacgregor.com", "name"=>"asd",
"phone"=>"123123231", "message"=>"sdfsdf",
"email"=>"[email protected]"}, "controller"=>"mail"}
Sent mail to [email protected]
Completed in 389ms (View: 1, DB: 7) | 200 OK [http://
www.allanmacgregor.com/pages/6/mail]
On my environment file I have the following config:
ActionMailer::Base.smtp_settings = {
:address => "mail.xxxxx.com ",
:domain => "allanmacgregor.com",
:port => 25,
:user_name => "xxxxx",
:password => "xxxxx",
:authentication => :plain
}
My form code is the following:
body:
<r:mailer:form name='contact'>
<fieldset>
<legend>Enter your Contact information and message</legend>
<label><r:text name='name'/><span>Name</span></label><br>
<label><r:text name='company' /><span>Company</span></label><br>
<label><r:text name='phone' /><span>Phone</span></label><br>
<label><r:text name='email' /><span>Email</span></label><br>
<r:textarea name='message' /><br>
<input type="submit" value="Send">
</fieldset>
</r:mailer:form>
mailer:
subject: "Query Received from Contact Form"
redirect_to: /products.html
from_field: email
recipients:
- [email protected]
email:
from: <r:mailer:get name='name'/>, <r:mailer:get name='email'/>
message:
<r:mailer:get name='message'/>
Any help its welcome, I been trying to get this working for days and
no luck so far.
Cheers