Jump to content

Form to send file via email?


Recommended Posts

I've looked around the repository, but I don't see what I'm looking for...

 

I'd like to have visitors to my site who come to get a file fill out a form (name, email, etc.) and have the file emailed to them.  This way I can identify those who want the file.

 

Thanks in advance for any recommendations.

 

Jonathan Kramer

Link to comment
https://forums.phpfreaks.com/topic/51143-form-to-send-file-via-email/
Share on other sites

Are you wanting it to automatically attach the file to the email and send it or to simply email you their request and then you email it to them?

Hi Chronister:

 

I'd like to automatically attach the file to the outgoing message. This way I know who has requested the file, but I need not manually send it afterwards.

 

Jonathan

I am not sure how to go about that, but take a look at this tutorial. It show how to do it

 

http://www.drquincy.com/resources/tutorials/webserverside/sendemailattachmentphp/

 

Here are some more results from google regarding this subject.

 

http://www.google.com/search?q=php+attach+file+to+email

 

If you figure it out and get it to work successfully post back, I would be interested learning how to do this myself.

If your just sending text it doesn't really seem like you need to send an attachment, just send a text based email, and if you're wanting them to go to your site, just send them a link with a unique ID, and on the page with that unique ID, have a counter on there displaying how many times the file has been viewed, OR have it save the Unique user id or uniqie URL id to a database. I hope I'm not being too confusing!

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.