# Uploading and Mailing documents

**URL:** <https://www.ruby-forum.com/t/uploading-and-mailing-documents/183109>\
**Category:** Rails\
**Created:** [February 8, 2010, 10:13am UTC](https://www.ruby-forum.com/t/uploading-and-mailing-documents/183109 "2010-02-08T10:13:08Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![mercurius](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/c89c15/32.png) [@mercurius](https://www.ruby-forum.com/u/mercurius)\
**Post date:** [February 8, 2010, 10:13am UTC](https://www.ruby-forum.com/t/uploading-and-mailing-documents/183109/1 "2010-02-08T10:13:08Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![mercurius](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/c89c15/32.png) [@mercurius](https://www.ruby-forum.com/u/mercurius)\
**Post date:** [February 8, 2010, 11:45am UTC](https://www.ruby-forum.com/t/uploading-and-mailing-documents/183109/2 "2010-02-08T11:45:35Z")

</div>

Rails comes with ActionMailer, which supports emailing attachments.

> **[Action Mailer Basics — Ruby on Rails Guides](https://guides.rubyonrails.org/action_mailer_basics.html)**
>
> Action Mailer BasicsThis guide provides you with all you need to get started in sending emails from your application, and many internals of Action Mailer. It also covers how to test your mailers.After reading this guide, you will know: How to send...

---

<div class="post-metadata">

**Author:** ![mercurius](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/c89c15/32.png) [@mercurius](https://www.ruby-forum.com/u/mercurius)\
**Post date:** [February 8, 2010, 11:49am UTC](https://www.ruby-forum.com/t/uploading-and-mailing-documents/183109/3 "2010-02-08T11:49:26Z")

</div>

Sharagoz – wrote:

> Rails comes with ActionMailer, which supports emailing attachments.  
> [Action Mailer Basics — Ruby on Rails Guides](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.

---

<div class="post-metadata">

**Author:** ![mercurius](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/c89c15/32.png) [@mercurius](https://www.ruby-forum.com/u/mercurius)\
**Post date:** [February 8, 2010, 3:34pm UTC](https://www.ruby-forum.com/t/uploading-and-mailing-documents/183109/4 "2010-02-08T15:34:20Z")

</div>

Pale H. wrote:

> Sharagoz – wrote:
> 
> > Rails comes with ActionMailer, which supports emailing attachments.  
> > [Action Mailer Basics — Ruby on Rails Guides](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](http://www.marnen.org)  
removed\_email\_address@domain.invalid

---

<div class="post-metadata">

**Author:** ![mercurius](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/c89c15/32.png) [@mercurius](https://www.ruby-forum.com/u/mercurius)\
**Post date:** [February 8, 2010, 12:27pm UTC](https://www.ruby-forum.com/t/uploading-and-mailing-documents/183109/5 "2010-02-08T12:27:13Z")

</div>

There are plenty of tutorials out there on how to do this, if you just  
google for it. For instance:

> **[Ruby on Rails - File Uploading](http://www.tutorialspoint.com/ruby-on-rails/rails-file-uploading.htm)**
>
> Ruby on Rails File Uploading - You may have a requirement in which you want your site visitors to upload a file on your server. Rails makes it very easy to handle this requirement. Now we will proceed with a simple and small Rails project.
