Email web form with Attached MS Word File

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
jacksphp
Forum Newbie
Posts: 3
Joined: Sun Dec 07, 2003 6:26 pm

Email web form with Attached MS Word File

Post by jacksphp »

How can my users attach a word file from their pc via a php web form and send to my email. I dont want to get uplaoded but emailed real time.

Any php expert here !!!!!

Please...Jacks
Chambrln
Forum Commoner
Posts: 43
Joined: Tue Dec 02, 2003 10:45 am
Location: Oregon

Post by Chambrln »

I believe you will still have to upload it to a temp folder for php to be able to mail it to you. You can set it up so once the email is successfully sent php deletes the temp file.
User avatar
JayBird
Admin
Posts: 4524
Joined: Wed Aug 13, 2003 7:02 am
Location: York, UK
Contact:

Post by JayBird »

yup, Chambrln is absolutely correct, you need to upload, send then delete the file.

Mark
jacksphp
Forum Newbie
Posts: 3
Joined: Sun Dec 07, 2003 6:26 pm

Post by jacksphp »

does anyone has a complete php codes to show me how...please
User avatar
JayBird
Admin
Posts: 4524
Joined: Wed Aug 13, 2003 7:02 am
Location: York, UK
Contact:

Post by JayBird »

have a look at these, write some code, and if you get into difficulties, come back and we will try and help

http://uk2.php.net/features.file-upload

http://uk2.php.net/manual/en/function.mail.php

Mark
Post Reply