[Radiant] Mailer Extension and Uploading File Attachments

2015-03-10 Thread Dom S
Hi, 

I'm hoping there are still some knowledgeable members here who might be 
able to help me with an issue I'm having with the Mailer extension and zero 
sized file attachments who could offer me some assistance. I can receive 
the form results, including the file attachment name but the attachment has 
no content and is always 0kb. 

I have a fresh install of Radiant 1.1.4 and Mailer extension 1.0.6. 

In the page body part / r:mailer:form I have: 

Select a file: r:mailer:file name=uploaded-file /

In the email part I have:

r:mailer:get name=uploaded-file /

In the logs I can see: 

Processing MailController#create (for xx.xx.xx.xx at 2015-03-10 16:06:14) 
[POST]

  Parameters: {mailer={spam-captcha=, 
uploaded-file=#File:/tmp/RackMultipart20150310-23111-1n8q8rw}, 
controller=mail, action=create, page_id=9}

Sent mail to d...@co.uk

I can see the file at /tmp/ and it has the correct size but am wondering if 
it is in the correct location as it is not local to the radiant install. 

In the email raw source I see: 

--mimepart_54ff1b63b1ed6_5a474ebf6c8612

Content-Type: text/plain; charset=utf-8 
Content-Transfer-Encoding: Quoted-printable 
Content-Disposition: inline 
File 1: xxx.xxx 

--mimepart_54ff1b63b1ed6_5a474ebf6c8612 

Content-Type: application/octet-stream; name=xxx.xxx 
Content-Transfer-Encoding: Base64 
Content-Disposition: attachment; filename=xxx.xxx 

--mimepart_54ff1b63b1ed6_5a474ebf6c8612--


I receive the email fine, I can see the filename but I can't get the 
attachment. 


Is there something obvious that I am missing or that needs setting in the 
configuration? If you can offer any pointers, help or assistance with this 
issue please could you reply. 


Many thanks, 



-- 

--- 
You received this message because you are subscribed to the Google Groups 
Radiant CMS group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to radiantcms+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[Radiant] Radiant Mailer Extension and Uploading File Attachments

2015-03-10 Thread Dom S
Hi all, 

I'm hoping there are still some knowledgeable members here that might be 
able to offer some help with a problem I have with the Mailer extension and 
uploading file attachments that I need assistance with. I seem to be 
receiving an email but with a zero size attachment. I'm trying to get the 
form to upload a document and email it to the form results email address.

I have a fresh install of Radiant 1.1.4 and Mailer extension 1.0.6. Nothing 
I seem to do results in the attachment being attached properly to email 
results, although I do get the email, other form results and the attached 
file name. 

In the email page part I have: 

File: r:mailer:get name=uploaded-file /

In the received email I just get the filename: 

File 1: Test.txt

In the email raw source:

--mimepart_54ff0e9e688fb_45174fd0d14321
Content-Type: application/octet-stream; name=Test.txt 
Content-Transfer-Encoding: Base64 
Content-Disposition: attachment; filename=Test.txt 
--mimepart_54ff0e9e688fb_45174fd0d14321--



No matter what file I upload it appears attached as a zero.kb file. 


From the log I see: 

Parameters: {mailer={spam-captcha=, first-name=D, required={
first-name=true}, 
file=#File:/tmp/RackMultipart20150310-11098-9qjeb5}, 
controller=mail, action=create, page_id=9}

Sent mail to d...


The file gets appears at /tmp/ but I am wondering if this address is wrong 
as it is not local to the radiant install. 


Is there some configuration that I am missing? If there is anything that 
you think might be worth checking or looking into please could you advise? 


Many thanks

-- 

--- 
You received this message because you are subscribed to the Google Groups 
Radiant CMS group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to radiantcms+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Radiant] Radiant Mailer Extension - Clarification on what needs to go into the SMTP settings

2012-12-27 Thread Marshal Linfoot
Hi Prism.

Here's the configuration I use on my Radiant site. I use Google for
sending/receiving email from the site, the Gmail account is gmail_user
and the password for signing into that account to read email is
gmail_pass.

ActionMailer::Base.delivery_method = :smtp
ActionMailer::Base.raise_delivery_errors = true
ActionMailer::Base.smtp_settings = {
  :enable_starttls_auto =  true,
  :address  =  smtp.gmail.com,
  :port =  587,
  :domain   =  smtp.gmail.com,
  :authentication   =  :plain,
  :user_name=  gmail_u...@gmail.com,
  :password =  gmail_pass
}

So, :address, :port, and :domain all refer to your website's smtp server.
:username and :password refer to the email user account you wish to use for
sending/receiving messages.

Hope this helps.
--
marshal


On Sun, Dec 23, 2012 at 1:39 AM, prism ctang.1...@gmail.com wrote:

 Sorry this is really daft but I am confused as to what goes into the
 bolded fields:

  * :address = mail.domain.com,
   :domain = domain.com,*
   :port = 25,
 *  :user_name = xx,
   :password = xx,*
   :authentication = :plain

 I've tried various things for the address (mail.domain.com VS.
 smtp.domain.com), user_name, and pass and nothing happens when I hit send
 on the actual form.  Would the username and password be what I use to log
 into my webhosting account?

 Also for the config, I took off the # for the config.frameworks -= [].  Is
 that correct? or should the line read #config.frameworks -= []?

 For this example from another thread:
 ActionMailer::Base.smtp_settings = {
   :address = mail.x.com,
   :domain = allanmacgregor.com,
   :port = 25,
   :user_name = x,
   :password = x,
   :authentication = :plain
 }

 Why is the mail.x.com blocked out? Wouldn't it be
 mail.allanmacgregor.com?

 Thank you for anyone to can provide some assistance.   I'm sorry if this
 seems ridiculously simple to set up but I honestly don't understand where I
 am going wrong because nothing is happening when I click send.




[Radiant] Radiant Mailer Extension - Clarification on what needs to go into the SMTP settings

2012-12-26 Thread prism
Sorry this is really daft but I am confused as to what goes into the bolded 
fields:

 * :address = mail.domain.com,
  :domain = domain.com,*
  :port = 25,
*  :user_name = xx,
  :password = xx,*
  :authentication = :plain

I've tried various things for the address (mail.domain.com VS. 
smtp.domain.com), user_name, and pass and nothing happens when I hit send 
on the actual form.  Would the username and password be what I use to log 
into my webhosting account?  

Also for the config, I took off the # for the config.frameworks -= [].  Is 
that correct? or should the line read #config.frameworks -= []?

For this example from another thread:
ActionMailer::Base.smtp_settings = {
  :address = mail.x.com,
  :domain = allanmacgregor.com,
  :port = 25,
  :user_name = x,
  :password = x,
  :authentication = :plain
}

Why is the mail.x.com blocked out? Wouldn't it be 
mail.allanmacgregor.com?

Thank you for anyone to can provide some assistance.   I'm sorry if this 
seems ridiculously simple to set up but I honestly don't understand where I 
am going wrong because nothing is happening when I click send. 



[Radiant] Mailer extension behaviour

2012-11-29 Thread Omer Garmy
Hi Everyone,

I'm trying to use the Radiant Mailer Extension to create a simple order 
form.
I have a lot of dropdown menus and I want to implement that when the user 
chooses a certain item from the list, it updates the order total.
This is easily done with javascript with using the HTML onChange tag.
But then I also want those order choices to be mailed to me, and that's 
where I'm stuck.

When using the mailer select (with r:mailer:select) any onChange tag I 
add to it just dissapears in the HTML souce code. So I can get the users 
choice, but I can't live-update the order totals.
I've tried to sidestep that problem by trying to hange the value of a 
r:mailer:hidden, that way I could just make normal HTML dropdowns with 
the onChange, and through some Javascript I can then pass that value on to 
the hidden form, and mail that info. But I wasn't able to do that either, I 
couldn't seem to change the value of the hidden form using Javascript.

Any advice/help would be greatly appreciated!



Re: [Radiant] Mailer extension

2012-10-25 Thread Marshal Linfoot
Hi Benny.

Turns out the problem was me :(

I was evaluating another mailer extension (forms/forms_mailer) and although
I had run the migrations to revert the database, I neglected to remove the
code from ../vendor/extensions. Duh!

Apologies for using this mailing list for something so trivial.
--
marshal



On Tue, Oct 23, 2012 at 4:23 PM, Benny Degezelle be...@gorilla-webdesign.be
 wrote:

 Hi Marshal,

 You're welcome!
 Be sure to let us know what caused the issue when you find out.

 Cheers,
 Benny



Re: [Radiant] Mailer extension

2012-10-23 Thread Marshal Linfoot
Mandeep and Jim, thanks for responding.

Jim, I don't see anything in the radiant log or the webserver (nginx, in
this case) logs. The error message only appears in the browser window when
I visit the mailer form page. Is there some way to get more verbose logging
from radiant?

Mandeep, I think the link you sent would be an excellent reference for
someone programming/developing an actionmailer application, but all I'm
trying to do is use one that someone else has written. I'm not a Ruby
programmer, just someone hoping to use the radiant-mailer-extension on a
radiant site.
--
marshal


Re: [Radiant] Mailer extension

2012-10-23 Thread Marshal Linfoot
Thanks again, Benny.

environment.rb has config.frameworks -= [  ] so that's not it. I'll keep
looking for the conflicting Mail class and also try running in development
mode.

Thanks for all your help.
--
marshal


Re: [Radiant] Mailer extension

2012-10-22 Thread Mandeep Kaur
On Tue, Oct 23, 2012 at 1:04 AM, Marshal Linfoot mlinf...@gmail.com wrote:
 I have been trying for the past few days to get the mailer extension working
 on a radiant site and have hit a dead-end. I get a undefined method
 `valid_config?' for Mail:Class error message when trying to display the
 form. I've tried a number of ideas that I found from searching the net, but
 nothing has worked so far. Wondering if any of the radiant gurus might have
 some suggestions for troubleshooting and fixing this.


Check following link:
http://api.rubyonrails.org/classes/ActionMailer/Base.html

Hope this will help you.

-- 
Mandeep Kaur
http://mandeepsimak.wordpress.com/


[Radiant] Mailer Extension, Redirecting to a Multilingual Page

2011-07-29 Thread jovhe nni
Hello,

 I'm really stuck with this problem for 3hours already. Can someone
help me with
 my dilemma? Whenever I tried to submit the form in my Contacts page,
and I'm
 using a different language for example japanese. It goes to the thank
you
 page but in the default language, english. Here is my code in my
mailer
 part:
 subject_field: subject
 from_field: email
 redirect_to: /r:slug//r:translate ja=thankyou_ja
en=thankyou_en
 zh=thankyou_zh//
 recipients:
   - jovhenn...@yahoo.com
 and my slug in my thank you page is correct.
 ja=thankyou_ja;en=thankyou_en;thankyou_zh
 So what am I doing wrong here?..
 I'm still researching if there's a way to change the content-type of
the
 mail to be sent in the mailer. Is there a mailer tag for changing the
 content-type?..or is it irrelevant to my problem xP

 Thank you and God Bless!!


[Radiant] Mailer extension error when submitting form

2011-06-17 Thread JT
Hi,

I have the Mailer extension installed on a client site (Radiant
0.9.1). I've created a form, and set up the mailer and email page
parts in the admin section. I'm experiencing a problem after
submitting the form.

After clicking the submit button, the page reloads, and where
previously I had input elements generated by the extension, it says
undefined method `h' for #Page:0x600fc98.

I can't find much information on this, but did see someone mention it
here: 
https://github.com/radiant/radiant-mailer-extension/pull/7#commitcomment-266312

There follow up comment makes it seem like a very simple solution, but
I don't know where to start!

Any help is appreciated!

JT


[Radiant] Mailer extension in layout

2010-10-20 Thread Krzysztof Kotlarek
Hello,
i have problem with mailer plugin.
I want to use mailer extension but in layout. Is possible to define
mailer part in layout ?
I don`t want to use that in configuration files, because i need to have
many languages
Thanks for your help

-- 
Posted via http://www.ruby-forum.com/.