Forum: Ruby on Rails Uploading and Mailing documents

Posted by Pale Horse (deadorbit)
on 2010-02-08 10:13
What I want is a document uploader on the front end so my visitors can
upload their CV or a completed application form and then submit this
document. On submission, an email will be sent with the document
attached to a specified email address.

If any code is required, then don't hesitate to ask. So, can someone
spare some time to help me out or point me in the direction of where to
begin?
Posted by Sharagoz -- (sharagoz)
on 2010-02-08 11:45
Rails comes with ActionMailer, which supports emailing attachments.
http://guides.rubyonrails.org/action_mailer_basics.html
Posted by Pale Horse (deadorbit)
on 2010-02-08 11:49
Sharagoz -- wrote:
> 
> Rails comes with ActionMailer, which supports emailing attachments.
> http://guides.rubyonrails.org/action_mailer_basics.html

Thank you, but first, I need my application to actually have the ability 
to upload the document I want to attach and mail.
Posted by Sharagoz -- (sharagoz)
on 2010-02-08 12:27
There are plenty of tutorials out there on how to do this, if you just 
google for it. For instance:
http://www.tutorialspoint.com/ruby-on-rails/rails-file-uploading.htm
Posted by Marnen Laibow-Koser (marnen)
on 2010-02-08 15:34
Pale Horse wrote:
> Sharagoz -- wrote:
>> 
>> Rails comes with ActionMailer, which supports emailing attachments.
>> http://guides.rubyonrails.org/action_mailer_basics.html
> 
> Thank you, but first, I need my application to actually have the ability 
> to upload the document I want to attach and mail.

Most people use Paperclip for that.

Best,
-- 
Marnen Laibow-Koser
http://www.marnen.org
marnen@marnen.org
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.