Brian,
Here's my settings on Eapps-
config.action_mailer.server_settings = {
:address => "127.0.0.1",
:port => 25,
:domain => "example.com",
:authentication => :login,
:user_name => "blah",
:password => "blah",
}
config.action_mailer.perform_deliveries = true
> admin part:
> ===========
> mailers:
> contact:
> subject: Contact Request
> from: [EMAIL PROTECTED]
> redirect_to: /en/contact/thank-you
> recipients:
> - [EMAIL PROTECTED]
This should be "config" part, right, not "admin"?
and it's YAML, so it's white space sensitive-
mailers:
contact:
subject
Make sure, it's exactly (whitespace wise) like:
http://mattmccray.com/svn/rails/plugins/radiant_mailer_behavior/README
Another good log to check is /var/log/maillog - this will tell you about
un/sucessful mail send attempts.
Hope this helps,
Todd
Quoting Brian Sam-Bodden <[EMAIL PROTECTED]>:
> After hours of playing with the Mailer behaviour on my eApps virtual
> server I'm about to give up and find other way to do a contact form. The
> email does not get delivered. So in case anybody can see any flaws in my
> setup here it is...
>
> environment.rb
> ==============
> # Configure ActionMailer
> ActionMailer::Base.delivery_method = :smtp
> ActionMailer::Base.server_settings = {
> :address => "mail.integrallis.com",
> :port => 587,
> :domain => "xxxxxxxxxxxxxxx",
> :user_name => "xxxxxxxx",
> :password => "xxxxxxxxxx",
> :authentication => :login
> }
>
>
> I have tested this sending email from this smtp server using a mail
> client.
>
>
> In my contacts page I have:
>
>
> admin part:
> ===========
> mailers:
> contact:
> subject: Contact Request
> from: [EMAIL PROTECTED]
> redirect_to: /en/contact/thank-you
> recipients:
> - [EMAIL PROTECTED]
>
> body part:
> ==========
> body part
> =========
> <div id="popup">
> <div id="popup-inner">
> <h2>Contact us</h2>
> <r:mailer:form name="contact">
> <r:mailer:hidden name="subject" value="Contact Request!" />
> <p>
> Your <strong>name</strong>: <br />
> <r:mailer:text name="name" id="required-name" size="40" />
> </p>
> <p>
> Your <strong>email</strong>:<br />
> <r:mailer:text name="email" id="required-email" size="40" />
> </p>
> <p>Your <strong>comments</strong>:<br />
> <r:mailer:textarea name="comments" cols="50" rows="10"
> id="required-comments" />
> </p>
> <p>
> <ul class="formbuttons">
> <li><r:mailer:submit value="Submit"/></li>
> <li><a href="#" class="lbAction"
> rel="deactivate">Cancel</a></li>
> </ul>
> </p>
> </r:mailer:form>
> </div>
> </div>
>
> email part:
> ===========
> Name: <r:mailer:get name="name" />
> Email: <r:mailer:get name="email" />
> Comments: <r:mailer:get name="comments" />
>
> Here what I see on my production.log
> ====================================
> Processing SiteController#show_page (for 69.218.201.157 at 2007-01-28
> 17:56:17) [POST]
> Parameters: {"mailer"=>{"name"=>"test", "comments"=>"test",
> "subject"=>"Contact Request!", "email"=>"[EMAIL PROTECTED]"},
> "action"=>"show_page", "url"=>["en", "contact"],
> "mailer_name"=>"contact", "controller"=>"site"}
> Completed in 0.04633 (21 reqs/sec) | DB: 0.00970 (20%) | 200 OK
> [http://www.integrallis.com/en/contact]
>
> I've search all my other logs but don't see any errors.
>
>
> A couple of questions:
> - Is there an easy way to test ActionMailer?
> - I'm using a lightbox for the contact form and the redirect doesn't
> seem to work. I always get the contact form after the post which is not
> what I want, I want the page that launched the contact form.
> - And of course getting an email delivered would be nice ;-)
>
> Any help will be appreciated.
>
> Cheers,
> Brian
>
> --
> 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