Rizwan Reza wrote:
> Now I am getting the following error. Is there anything in particular 
> I can do to make it work.
>
> You have a nil object when you didn't expect it!
>
> You might have expected an instance of Array.
> The error occured while evaluating nil.[]

I just thought of something that might cause this -- Let's say the 
following is my emailer form:

<r:mailer:form name="contact">
 *Name:* <r:mailer:text name="name" /><br/>
 *City:* <r:mailer:text name="city" /><br/>
 *Email:* <r:mailer:text name="email" /><br/>
 <r:mailer:submit />
</r:mailer:form>

And here's my 'config' part:

mailers:
  contact:
    subject: From the website of Whatever
    from: [EMAIL PROTECTED]
    redirect_to: /contact/thank-you
    recipients:
      - [EMAIL PROTECTED]

I would also have an 'email' part:

<r:mailer:get name="name"/> submitted the following:
City  = <r:mailer:get name="city"/>
Email = <r:mailer:get name="email"/>

Now, I'd need to make sure the *name* of the mailer:form exists in the 
*mailers:* config section. In the example above, they are both named 
'contact'. So if you use something different, be sure they match up.

Why did I make it where you have to name the mailer form configuration? 
Simple. Because this will allow for multiple mailers on the same page.

I think I need to work on documentation for the mailer... :-)

Cheers,
  M@
_______________________________________________
Radiant mailing list
[email protected]
http://lists.radiantcms.org/mailman/listinfo/radiant

Reply via email to