Todd,
Thanks for the help. I did have my parts named properly I just screwed up
in the email. I have check the indents on the YAML file and it seems fine.
I'm using 2 spaces for indents but it shouldn't matter right? one or more
should be fine.
Here's what I have now...
config part
========
mailers:
contact:
subject: Integrallis Website - Contact Request
from:
[EMAIL PROTECTED]
redirect_to: /en/contact/thank-you
recipients:
- [EMAIL PROTECTED]
- [EMAIL PROTECTED]
email part
=======
Name: <r:mailer:get name="name" />
Email: <r:mailer:get name="email" />
Comments: <r:mailer:get name="comments" />
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>
Before I was trying to use my smtp server which was hosted somewhere else.
So I switched to use the local SMTP server as you suggested. Below is
the new ActionMailer configuration. I was missing the line
"perform_deliveries = true" so I've added that
configuration.rb
================
ActionMailer::Base.delivery_method = :smtp
ActionMailer::Base.server_settings
= {
:address => "127.0.0.1",
:port => 25,
:domain => "www.integrallis.com",
:user_name => "[EMAIL PROTECTED]",
:password => "*******",
:authentication => :login
}
config.action_mailer.perform_deliveries = true
In my maillog I see the following...
Jan 29 11:07:45 integrallis sendmail[11639]: l0TG7jqD011639:
from=root, size=0, class=0, nrcpts=0,
msgid=<[EMAIL PROTECTED]>,
relay=
[EMAIL PROTECTED]
Jan 29 11:07:48 integrallis sendmail[11673]: l0TG7mKb011673:
from=root, size=0, class=0, nrcpts=0,
msgid=<[EMAIL PROTECTED]>,
[EMAIL PROTECTED]
Those seem to match the times when I was trying to send the email but
I do see now more entries after those and I haven't try the contact
form since. Besides those I do not see any errors. Yet the emails are
still not being delivered.
The other things that I am trying to figure out is the redirect in the
behavior since this is a popup contact form (using lightbox) the
redirect takes you back to the form itself rather than the parent
page. The popup is just an HTML snippet so when it redirects you just
get the plain HTML since it gets it formatting from the page that
launched it.
Thanks again,
Brian
On 1/29/07, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
> Send Radiant mailing list submissions to
> [email protected]
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://lists.radiantcms.org/mailman/listinfo/radiant
> or, via email, send a message with subject or body 'help' to
> [EMAIL PROTECTED]
>
> You can reach the person managing the list at
> [EMAIL PROTECTED]
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Radiant digest..."
>
>
> Today's Topics:
>
> 1. Re: Problem. MailerBehaviour in eApps (Todd McGrath)
> 2. Re: Radiant Digest, Vol 10, Issue 73 (Brian Sam-Bodden)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Mon, 29 Jan 2007 06:34:53 -0600
> From: Todd McGrath < [EMAIL PROTECTED] >
> Subject: Re: [Radiant] Problem. MailerBehaviour in eApps
> To: [email protected]
> Message-ID: < [EMAIL PROTECTED]>
> Content-Type: text/plain; charset=ISO-8859-1
>
> 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
> >
>
>
>
>
> ------------------------------
>
> Message: 2
> Date: Mon, 29 Jan 2007 09:16:24 -0500
> From: "Brian Sam-Bodden" < [EMAIL PROTECTED]>
> Subject: Re: [Radiant] Radiant Digest, Vol 10, Issue 73
> To: [email protected]
> Message-ID:
> < [EMAIL PROTECTED]>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Oliver,
> It seems that our setups are exactly the same yet I get no email
> delivered nor do I get any hints of why it doesn't get delivered. I'll
> switch my testing to a dev machine and report back any findings.
>
> Thanks,
> Brian
>
> On 1/29/07, [EMAIL PROTECTED] <
> [EMAIL PROTECTED]> wrote:
> >
> > Send Radiant mailing list submissions to
> > [email protected]
> >
> > To subscribe or unsubscribe via the World Wide Web, visit
> > http://lists.radiantcms.org/mailman/listinfo/radiant
> > or, via email, send a message with subject or body 'help' to
> > [EMAIL PROTECTED]
> >
> > You can reach the person managing the list at
> > [EMAIL PROTECTED]
> >
> > When replying, please edit your Subject line so it is more specific
> > than "Re: Contents of Radiant digest..."
> >
> >
> > Today's Topics:
> >
> > 1. Re: 0.5.2 -- Setup and design (Andrew Klein)
> > 2. Problem. MailerBehaviour in eApps (Brian Sam-Bodden)
> > 3. Re: Mailer Behaviour Error (Oliver Coningham)
> >
> >
> > ----------------------------------------------------------------------
> >
> > Message: 1
> > Date: Sun, 28 Jan 2007 18:46:14 -0800
> > From: Andrew Klein < [EMAIL PROTECTED]>
> > Subject: Re: [Radiant] 0.5.2 -- Setup and design
> > To: [email protected]
> > Message-ID: < [EMAIL PROTECTED] >
> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed
> >
> > Hey all!
> >
> > Just wondering if anyone has a solution for me. Your help would be
> > GREATLY appreciated!
> >
> > Andrew
> >
> > Andrew Klein wrote:
> > > Hello all!
> > >
> > > Still getting a hang of this all and just looking for some
> > > input;insight. I've been running a fairly simple design of Radiant
> > > (Read: almost source) and want to expand the design a little. Here is
> > > kind of what I want to do:
> > >
> > > - Home (Shows either just News or all of the <dont know> heading,
> > > chronilogically)
> > > -- <dont know what to call>
> > > --- News
> > > --- Articles
> > > --- Tutorials
> > > -- Downloads
> > > -- Gallery
> > > -- RSS (Covers chronologically the news/articles/tutorial tree)
> > > --- RSS <one for each of the news/articles/tutorials>
> > >
> > > I just need some insight on how to do the RSS feeds. Also, curious if
> > > you could include 'categories' somehow or 'tags' for each Sub under all
> > > the categories.
> > >
> > > As well, wondering if there is plans for a commenting system.
> > > Originally, when I was looking at using Radiant, I seemed to remember
> > > there being a third-party site for including managable comment system
> > > and as such I was going to use that, but so far the only one available
> > > is pretty crappy that I can find (Don't have link; I left pretty
> > > digusted at it)
> > >
> > > Sorry for the ignorance right now. I am just trying to get up and going
> > > again and having a duck of a time.
> > > Thanks for all the patience!
> > > Andrew
> > > _______________________________________________
> > > Radiant mailing list
> > > Post: [email protected]
> > > Search: http://radiantcms.org/mailing-list/search/
> > > Site: http://lists.radiantcms.org/mailman/listinfo/radiant
> > >
> > >
> >
> >
> >
> > ------------------------------
> >
> > Message: 2
> > Date: Mon, 29 Jan 2007 01:48:40 +0100
> > From: Brian Sam-Bodden <[EMAIL PROTECTED] >
> > Subject: [Radiant] Problem. MailerBehaviour in eApps
> > To: [email protected]
> > Message-ID: < [EMAIL PROTECTED] >
> > Content-Type: text/plain; charset=utf-8
> >
> > 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/.
> >
> >
> > ------------------------------
> >
> > Message: 3
> > Date: Mon, 29 Jan 2007 10:27:57 +0100
> > From: Oliver Coningham <[EMAIL PROTECTED]>
> > Subject: Re: [Radiant] Mailer Behaviour Error
> > To: [email protected]
> > Message-ID: <[EMAIL PROTECTED]>
> > Content-Type: text/plain; charset=utf-8
> >
> > My environment.tb file has these lines at the VERY bottom of it, with
> > nothing coming after the closed bracket:
> >
> > ActionMailer::Base.server_settings = {
> > :address => " aromatherapymassageyeovil.co.uk",
> > :port => 25,
> > :domain => ' aromatherapymassageyeovil.co.uk',
> > :user_name => "username",
> > :password => 'password',
> > :authentication => :login
> > }
> >
> > Obviously replace the username and password with the ones that you chose
> > when you set up your hosting account with A Small Orange. Also,
> > obviously, change the domains to your one.
> >
> > Next, on my Radiant admin page I have a page called contact (a child
> > from the home page). Its behaviour (set at the bottom) is set to Mailer.
> > In this page I have the following:
> >
> > <r:mailer:form name="contact">
> > <r:mailer:hidden name="subject" value="Floral Magic Enquiry" />
> > Name:<br/>
> > <r:mailer:text name="name" /> <br />
> > Message:<br />
> > <r:mailer:textarea name="message" /> <br />
> > <r:mailer:submit value="Send" />
> > </r:mailer:form>
> >
> > I created a new part for this page (by clicking the green plus icon on
> > the right) and named it config. In this part I have:
> >
> > mailers:
> > contact:
> > subject: Contact Form
> > from: [EMAIL PROTECTED]
> > redirect_to: /contact/thank-you/
> > recipients:
> > - [EMAIL PROTECTED]
> >
> > Make sure that the indents look exactly the same, and that you replace
> > the two email addresses with your own, and ones that ACTUALLY work. I
> > made this mistake and used one I hadn't actually set up yet. You can
> > evne use a hotmail address if you want.
> >
> > Create another part for this page in the same way. Call it email. In
> > this part I have the following:
> >
> > *** FLORAL MAGIC ENQUIRY ***
> >
> > Name: <r:mailer:get name="name"/>
> >
> > Message: <r:mailer:get name="message"/>
> >
> > Sent: <r:date />
> >
> > This basically formats the email that is sent with the form data. Next,
> > create a new page called thank-you that is a child of the Contact page.
> > Just put some simple text in this page.
> >
> > All being well this should work!!!
> >
> > --
> > 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
> >
> > End of Radiant Digest, Vol 10, Issue 73
> > ***************************************
> >
> >
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
> http://lists.radiantcms.org/pipermail/radiant/attachments/20070129/1a6e4a0c/attachment.htm
>
> ------------------------------
>
> _______________________________________________
> Radiant mailing list
> Post: [email protected]
> Search: http://radiantcms.org/mailing-list/search/
> Site: http://lists.radiantcms.org/mailman/listinfo/radiant
>
> End of Radiant Digest, Vol 10, Issue 74
> ***************************************
>
>
_______________________________________________
Radiant mailing list
Post: [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site: http://lists.radiantcms.org/mailman/listinfo/radiant