Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Email Upload and Attach

Status
Not open for further replies.

power97

Programmer
Sep 17, 2003
67
0
0
CA
Hi,
I need to know if it is possible to allow a user to upload a file and attach it to an email without saving it first ? ( i.e. streaming it )
I am building a email user management routine and the user would like to have a list of persons to send mail to and attach documents as needed.

Thanks

 
If your user uploads a file through PHP, PHP will automatically save the file in the configured temp directory and set values in the $_FILES superglobal array.

From there, your script can get to the file.

To make sending emails with attachments through PHP easier, take a look at the PHPMailer class at sourceforge: . I highly recommend it.

Want the best answers? Ask the best questions: TANSTAAFL!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top