[Radiant] Troubles with mailer extension

2009-10-26 Thread María Paula Mariani
Hello!

I'm trying to build a contact form using the Mailer extension. I've followed
step by step the documentation, but I can't find the way.
When clicking at Submit form, it do not deliver the message and forward to
this path /pages/84/mail#mailer

I'm using 2 forms inside the same Page. One called form1 and the other
form2. Is it the right way of doing it?

I've a page called mail, with 2 page parts: mailer and email

Mail

r:mailer:form name='form'
  fieldset
  legendEnter your contact information and message./legendbr
  label class=yournameYour name span class=bg-k*/span r:text
name='name' class='input'//labelbr
  label class=yourcompanyYour Company span class=bg-k*/span
r:text name='company' class='input'//labelbr
  labelYour E-mail r:text name='email' class='input'//labelbr
  labelYour message span class=bg-k*/span
  r:textarea name='message' class='textarea' //labelbr
  input type=submit value=Send class=formboton
  /fieldset
/r:mailer:form

Mailer

  subject: Contact from website
  from_field: email
  recipients:
-  paulamari...@gmail.com


Email

from: r:mailer:get name='name'/
company: r:mailer:get name='company'/
email: r:mailer:get name='email'/
message:
r:mailer:get name='message'/


and the configuration .rb is properly configured.
Any clues?

Thanks very much!

-- 
Paula
___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] Troubles with mailer extension

2009-10-26 Thread Travis D. Warlick, Jr.
Paula,

You should be using the following tag syntax for the form fields:

   r:mailer:text name=name /

See the Usage section here: http://github.com/radiant/radiant-mailer-extension

--  
 Travis D Warlick, Jr
 Lead Developer -- Operis Systems




On Oct 26, 2009, at 9:26 AM, María Paula Mariani wrote:

 Hello!

 I'm trying to build a contact form using the Mailer extension. I've  
 followed
 step by step the documentation, but I can't find the way.
 When clicking at Submit form, it do not deliver the message and  
 forward to
 this path /pages/84/mail#mailer

 I'm using 2 forms inside the same Page. One called form1 and the other
 form2. Is it the right way of doing it?

 I've a page called mail, with 2 page parts: mailer and email

 Mail

 r:mailer:form name='form'
  fieldset
  legendEnter your contact information and message./legendbr
  label class=yournameYour name span class=bg-k*/span r:text
 name='name' class='input'//labelbr
  label class=yourcompanyYour Company span class=bg-k*/span
 r:text name='company' class='input'//labelbr
  labelYour E-mail r:text name='email' class='input'//labelbr
  labelYour message span class=bg-k*/span
  r:textarea name='message' class='textarea' //labelbr
  input type=submit value=Send class=formboton
  /fieldset
 /r:mailer:form

 Mailer

  subject: Contact from website
  from_field: email
  recipients:
-  paulamari...@gmail.com


 Email

 from: r:mailer:get name='name'/
 company: r:mailer:get name='company'/
 email: r:mailer:get name='email'/
 message:
 r:mailer:get name='message'/


 and the configuration .rb is properly configured.
 Any clues?

 Thanks very much!

 -- 
 Paula
 ___
 Radiant mailing list
 Post:   Radiant@radiantcms.org
 Search: http://radiantcms.org/mailing-list/search/
 Site:   http://lists.radiantcms.org/mailman/listinfo/radiant

___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] Troubles with mailer extension

2009-10-26 Thread john muhl
On Mon, Oct 26, 2009 at 9:37 AM, Travis D. Warlick, Jr.
warli...@operissystems.com wrote:
 You should be using the following tag syntax for the form fields:

   r:mailer:text name=name /

 See the Usage section here: http://github.com/radiant/radiant-mailer-extension

not true. everything inside r:mailer:form is already in the
r:mailer... namespace so

r:mailer:form
  r:mailer:text...

is exactly the same as

r:mailer:form
  r:text...

(this is pretty much true of all radius tags)

 On Oct 26, 2009, at 9:26 AM, María Paula Mariani wrote:
  I'm trying to build a contact form using the Mailer extension. I've
  followed
  step by step the documentation, but I can't find the way.
  When clicking at Submit form, it do not deliver the message and
  forward to
  this path /pages/84/mail#mailer

that url suggest you haven't set
`Radiant::Config['mailer.post_to_page?'] = true`. see
http://wiki.github.com/radiant/radiant/mailer-extension

i also see that you're trying to send to an @gmail.com address so i'm
guessing that you're using the gmail smtp server; if that's the case
and you're running ruby 1.8.6 you'll need to install the
action_mailer_tls rails plugin.

if none of that helps could you provide more details on your setup.
action mailer config, smtp provider, ruby version, radiant version
etc.
___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant

[Radiant] Radiant Site Excessive Memory Usage

2009-10-26 Thread Allan Miller
Hello,

I'm running a small radiant site (about 20 pages) using only a few  
extensions (blog, help, and mail_to).  The site uses what seems to be  
an excessive amount of memory:


After apache restart, no radiant site page requests yet:

  $free -m
   total   used   free  
sharedbuffers cached
Mem: 256 61195   
0  0 13
-/+ buffers/cache:47209
Swap:511 39472



After first page request just after apache restart:

$ free -m
   total   used   free  
sharedbuffers cached
Mem:  256252  4   
0  0 14
-/+ buffers/cache:   237 18
Swap: 511 48463

I'm running on passenger 2.2.5 using apache2, and not using  
ImageMagik/RMagik gems (not installed).

Any idea what might be causing this, and how I might go about  
reducing memory usage?

Thanks!

___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] Troubles with mailer extension

2009-10-26 Thread María Paula Mariani
On Mon, Oct 26, 2009 at 1:04 PM, john muhl johnm...@gmail.com wrote:

 On Mon, Oct 26, 2009 at 9:37 AM, Travis D. Warlick, Jr.
 warli...@operissystems.com wrote:
  You should be using the following tag syntax for the form fields:
 
r:mailer:text name=name /
 
  See the Usage section here:
 http://github.com/radiant/radiant-mailer-extension

 not true. everything inside r:mailer:form is already in the
 r:mailer... namespace so

 r:mailer:form
  r:mailer:text...

 is exactly the same as

 r:mailer:form
  r:text...

 (this is pretty much true of all radius tags)

  On Oct 26, 2009, at 9:26 AM, María Paula Mariani wrote:
   I'm trying to build a contact form using the Mailer extension. I've
   followed
   step by step the documentation, but I can't find the way.
   When clicking at Submit form, it do not deliver the message and
   forward to
   this path /pages/84/mail#mailer

 that url suggest you haven't set
 `Radiant::Config['mailer.post_to_page?'] = true`. see
 http://wiki.github.com/radiant/radiant/mailer-extension

 i also see that you're trying to send to an @gmail.com address so i'm
 guessing that you're using the gmail smtp server; if that's the case
 and you're running ruby 1.8.6 you'll need to install the
 action_mailer_tls rails plugin.

 if none of that helps could you provide more details on your setup.
 action mailer config, smtp provider, ruby version, radiant version
 etc.
 ___
 Radiant mailing list
 Post:   Radiant@radiantcms.org
 Search: http://radiantcms.org/mailing-list/search/
 Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Hi! Thanks very much for your answers!

I've tried using this format r:mailer:text name=name / but I keep having
the same troubles.

I've added `Radiant::Config['mailer.post_to_page?'] = true` to the
environment.rb file, to the very last line, and made again the deploy. Now
the URL I see after submitting is /pages/71/mail#mailer, should I set a
thank_you page?

We are running ruby 1.8.6, I will install the plugin suggested.

By the way, a mailer section for multiple recipients should look this way?

Mailer

  subject: Contact from website
  from_field: email
  recipients:
-  paulamari...@gmail.com
-  anot...@gmail.com paulamari...@gmail.com
-  n...@name paulamari...@gmail.com.com paulamari...@gmail.com


Thanks very much!

-- 
Paula
___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant

[Radiant] Question about checking out branch of database_mailer

2009-10-26 Thread Nate Turnage
Hey all. I gotta quick one.

I have the database_mailer extension loaded as a submodule. I tried to
update it to origin/master then run the migration on it, but I am getting
errors. I ran git submodule init  git submodule update, then I saw that
there were branches for 0.7, 0.8, 0.9. I cannot remember how to check out a
remote branch. Can somebody refresh my memory on how to do that?

Running 0.8.1.


Thanks,

Nate
___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] Question about checking out branch of database_mailer

2009-10-26 Thread Cristian Duma
it should be git checkout -b some-local-branch origin/remote-branch

I've added as a note on the readme.

On Mon, Oct 26, 2009 at 6:30 PM, Nate Turnage pixeln...@gmail.com wrote:

 Hey all. I gotta quick one.

 I have the database_mailer extension loaded as a submodule. I tried to
 update it to origin/master then run the migration on it, but I am getting
 errors. I ran git submodule init  git submodule update, then I saw that
 there were branches for 0.7, 0.8, 0.9. I cannot remember how to check out a
 remote branch. Can somebody refresh my memory on how to do that?

 Running 0.8.1.


 Thanks,

 Nate
 ___
 Radiant mailing list
 Post:   Radiant@radiantcms.org
 Search: http://radiantcms.org/mailing-list/search/
 Site:   http://lists.radiantcms.org/mailman/listinfo/radiant

___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] Question about checking out branch of database_mailer

2009-10-26 Thread Nate Turnage
On Mon, Oct 26, 2009 at 11:36 AM, Cristian Duma cristi.d...@aissac.rowrote:

 let me be clear(er) :)

 git checkout -b local origin/0.8

 for Radiant 0.8.1



Thanks for that.


~Nate
___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


[Radiant] Another question about database_mailer - capturing a file?

2009-10-26 Thread Nate Turnage
How do I set up a column in the environment for database_mailer to capture a
file submitted by a user?

And more of a mailer question:
How can I include that file in the email set out with mailer?



~Nate
___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] Another question about database_mailer - capturing a file?

2009-10-26 Thread Cristi Duma
1. Any attachments that the e-mail might have will be automatically saved on
the file system. They can be downloaded from the details page of every
record.

2. You need r:mailer:file name=attachment / but the official version of
mailer doesn't support mail attachments. Jomz had a version, which we took
and merged into our version of
mailerhttp://github.com/Aissac/radiant-mailer-extension



On Mon, Oct 26, 2009 at 7:03 PM, Nate Turnage pixeln...@gmail.com wrote:

 How do I set up a column in the environment for database_mailer to capture
 a
 file submitted by a user?

 And more of a mailer question:
 How can I include that file in the email set out with mailer?



 ~Nate
 ___
 Radiant mailing list
 Post:   Radiant@radiantcms.org
 Search: http://radiantcms.org/mailing-list/search/
 Site:   http://lists.radiantcms.org/mailman/listinfo/radiant

___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] Another question about database_mailer - capturing a file?

2009-10-26 Thread Nate Turnage
On Mon, Oct 26, 2009 at 12:10 PM, Cristi Duma cristi.d...@aissac.ro wrote:

 1. Any attachments that the e-mail might have will be automatically saved
 on
 the file system. They can be downloaded from the details page of every
 record.


OK, that clears that up.


 2. You need r:mailer:file name=attachment / but the official version of
 mailer doesn't support mail attachments. Jomz had a version, which we took
 and merged into our version of
 mailerhttp://github.com/Aissac/radiant-mailer-extension


Alright. I have your version installed. I have to say, though, that it would
be really nice if the 20+ forks of mailer could all be wrangled into the
main version of mailer. I would love to have a mailer that worked with file
attachments [multiple attachments?], captured the info in database_mailer
*and* made use of Recaptcha. It is frustrating trying to decipher the
network graph to figure out which extension(s) to use sometimes.

Thanks for your help, Cristi.


~Nate
___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


[Radiant] Multilingual pages extension

2009-10-26 Thread María Paula Mariani
Hello!

I'm having some troubles with the Multilingual Pages extension this time.
I've placed a language selector from the available tags that look like this:

  select onchange=location.href=this.value;
r:language_selection
  r:current
option selected=selected value=r:url /r:language_name
//option
  /r:current
  r:available
option value=r:url /r:language_name //option
  /r:available
  r:unavailable
  /r:unavailable
 /r:language_selection
  /select

The problem is that the available languages that are being displayed, at
first sight are coming from all the Slugs I wrote sometime. Spanish is being
displayed twice.
Any clues? suggestions?

My Home page is not multilingual. It's slug is /
English redirects to /lang-en and Spanish to /lang-es


Thanks very much!

-- 
Paula
___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] Troubles with mailer extension

2009-10-26 Thread María Paula Mariani
2009/10/26 María Paula Mariani paulamari...@gmail.com


 i also see that you're trying to send to an @gmail.com address so i'm
 guessing that you're using the gmail smtp server; if that's the case
 and you're running ruby 1.8.6 you'll need to install the
 action_mailer_tls rails plugin.

 Hi!

I've installed the action_mailer_tls gem, should I include it this way
before the Action Mailer SMTP configuration

require 'smtp_tls'

or it is not needed?


Thanks very much,
-- 
Paula
___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant

Re: [Radiant] Troubles with mailer extension

2009-10-26 Thread john muhl
 i also see that you're trying to send to an @gmail.com address so i'm
 guessing that you're using the gmail smtp server; if that's the case
 and you're running ruby 1.8.6 you'll need to install the
 action_mailer_tls rails plugin.

 I've installed the action_mailer_tls gem, should I include it this way
 before the Action Mailer SMTP configuration

 require 'smtp_tls'

 or it is not needed?

from what i understand it's not needed. see the first comment here:
http://apidock.com/rails/ActionMailer/Base
___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] Another question about database_mailer - capturing a file?

2009-10-26 Thread Cristi Duma
Well, although we use mailer extension on every site, database-mailer was
used only a few times and we never needed Recaptcha. But, I think it is a
good idea. Maybe someone will do it, when they need it.

At the moment, for multiple attachments you can just add more file fields,
Don't know if there is a flash uploader.

Cristi


On Mon, Oct 26, 2009 at 7:36 PM, Nate Turnage pixeln...@gmail.com wrote:

 On Mon, Oct 26, 2009 at 12:10 PM, Cristi Duma cristi.d...@aissac.ro
 wrote:

  1. Any attachments that the e-mail might have will be automatically saved
  on
  the file system. They can be downloaded from the details page of every
  record.
 

 OK, that clears that up.


  2. You need r:mailer:file name=attachment / but the official version
 of
  mailer doesn't support mail attachments. Jomz had a version, which we
 took
  and merged into our version of
  mailerhttp://github.com/Aissac/radiant-mailer-extension


 Alright. I have your version installed. I have to say, though, that it
 would
 be really nice if the 20+ forks of mailer could all be wrangled into the
 main version of mailer. I would love to have a mailer that worked with file
 attachments [multiple attachments?], captured the info in database_mailer
 *and* made use of Recaptcha. It is frustrating trying to decipher the
 network graph to figure out which extension(s) to use sometimes.

 Thanks for your help, Cristi.


 ~Nate
 ___
 Radiant mailing list
 Post:   Radiant@radiantcms.org
 Search: http://radiantcms.org/mailing-list/search/
 Site:   http://lists.radiantcms.org/mailman/listinfo/radiant

___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] Radiant Site Excessive Memory Usage

2009-10-26 Thread Sean Cribbs
On a 256MB VPS, you should run no more than 2 app servers, 60-100MB of 
RAM is typical per app server/worker.  If you're using passenger, which 
it seems you are, put these into your Apache config:

PassengerMaxPoolSize 2
PassengerMaxInstancesPerApp 2

Sean

Allan Miller wrote:
 Hello,

 I'm running a small radiant site (about 20 pages) using only a few  
 extensions (blog, help, and mail_to).  The site uses what seems to be  
 an excessive amount of memory:


 After apache restart, no radiant site page requests yet:

   $free -m
total   used   free  
 sharedbuffers cached
 Mem: 256 61195   
 0  0 13
 -/+ buffers/cache:47209
 Swap:511 39472



 After first page request just after apache restart:

 $ free -m
total   used   free  
 sharedbuffers cached
 Mem:  256252  4   
 0  0 14
 -/+ buffers/cache:   237 18
 Swap: 511 48463

 I'm running on passenger 2.2.5 using apache2, and not using  
 ImageMagik/RMagik gems (not installed).

 Any idea what might be causing this, and how I might go about  
 reducing memory usage?

 Thanks!

 ___
 Radiant mailing list
 Post:   Radiant@radiantcms.org
 Search: http://radiantcms.org/mailing-list/search/
 Site:   http://lists.radiantcms.org/mailman/listinfo/radiant

   

___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant