Jump to content

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!

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.