Radiant Mailer Behavior

Hi,

i am pretty much excited by using Radiant. I am a bit confused by the
Mailer
behavior. I am trying to implement it but it gives me errors. Can
someone
talk about this from his experience?

Also config part needs to be defined the same way as a page part, right?
Is
there a need of defining smtp?

Thanks in advance.

Regards,

Rizwan R.

Hello.

On 6/27/06, Rizwan R. [email protected] wrote:

i am pretty much excited by using Radiant. I am a bit confused by the Mailer
behavior. I am trying to implement it but it gives me errors. Can someone
talk about this from his experience?

http://lists.radiantcms.org/pipermail/radiant/2006-June/000643.html

Also config part needs to be defined the same way as a page part, right? Is

Yes.

there a need of defining smtp?

No.

–M

Thanks for the reply. I also had revision 56 of radiant so I am using
the
behavior with that for the time being. 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.[]

Rizwan

Has it been addressed in the 0.5 grindstone release?

RIzwan

Rizwan R. wrote:

Has it been addressed in the 0.5 grindstone release?

Probably not. I’d suggest you e-mail Matt McCray directly with questions
about the mailer behavior (http://mattmccray.com/). Or even better, find
the problem and submit a patch to him.


John L.
http://wiseheartdesign.com

I can’t get accented characters like umlauts to work properly with
Radiant. HTML entities work, but that’s a little bit too complicated
for most users… Idealy people should be able to cut and paste text
from word into a Radiant form and the accents would just keep working…

Anyone?


Jeroen J.
Laika online entertainment


Rizwan R. 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.[]
When are you getting this error, exactly? When it tries to show the
page, or when you submit it?

Also, do you have any other plugins installed?

I did notice that the example config part is malformed in the README…
It should look like this:

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

Also, you’ll need to add an ‘email’ (or ‘email_html’) part as well. It’s
the template that’s used for the email itself.

Thanks,
[email protected]

Rizwan R. 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” />

City: <r:mailer:text name=“city” />

Email: <r:mailer:text name=“email” />

<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… :slight_smile:

Cheers,
[email protected]

Rizwan R. wrote:

Has it been addressed in the 0.5 grindstone release?

Not yet, I will have a look at it – probably this evening. Hopefully,
I’ll have an updated version out there tonight.

[email protected]

On Jun 29, 2006, at 11:55 AM, [email protected] McCray wrote:

I think I need to work on documentation for the mailer… :slight_smile:

Please codify the assumption you tracked down by raising a specific
exception instead of letting Ruby barf. That gives you an opportunity
to convey exactly what the problem is, where, and why, and gives the
rest of us something to feed to/retrieve from Google.


Ryan P.
Senior Developer, SubscriberMail, LLC

3333 Warrenville Rd.
Suite 530
Lisle, IL 60532
(630) 303-5072

Not Just Email…SubscriberMail
http://www.subscribermail.com/

This message (including attachments) contains proprietary information
which may not be disclosed or used beyond the purposes of this
message without the written consent of SubscriberMail, LLC. If you
receive this message in error, notify the sender and destroy this
message and all attachments immediately. Thank you.

SubscriberMail is covered under US PATENT 6,769,002

I think the problem I am having on the localhost is connection error.

But on the hosted servers where the live radiant copy is working, it
shows:

protected method `get_class_name’ called for #<MailerBehavior:
0x409b6698>

Any hopes?

Thanks for the behavior, btw!

Rizwan

On 6/29/06, Jeroen J. [email protected] wrote:

I can’t get accented characters like umlauts to work properly with Radiant.
HTML entities work, but that’s a little bit too complicated for most
users… Idealy people should be able to cut and paste text from word into a
Radiant form and the accents would just keep working…

Have you tried to set the content-type of your main layout as
“text/html; charset=utf-8”?

On Jul 4, 2006, at 10:46 AM, Ollivier R. wrote:

I can’t get accented characters like umlauts to work properly with
Radiant.
HTML entities work, but that’s a little bit too complicated for most
users… Idealy people should be able to cut and paste text from
word into a
Radiant form and the accents would just keep working…

Have you tried to set the content-type of your main layout as
“text/html; charset=utf-8”?

Well, I’ll be damned… I thought I did, but apparently not.

Thanks! And sorry for wasting everyone’s time. :slight_smile:


Jeroen J.
Laika online entertainment


This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs