PHP mail() with attachments

I want to put a form on a site that users can email me and also send one attachment file (just PDF) if they want!
is anyone able to help?
edm19Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

pcaylorCommented:
There are two parts to doing this.  The first is getting the PDF file uploaded to somewhere you have access to and the second is sending yourself a MIME email.

I can walk you through rolling it yourself, but you'd probably get what you want easier by using the PHPFormmail script.  The author's page is in French, but once you download the code, it's pretty clear what is going on.

All you should have to do from there is put on a validator on your form to verify that the file is a PDF and you are ready to go.

http://www.hotscripts.com/Detailed/8397.html

-Peter
0
VGRCommented:
I like your "The author's page is in French, but " :D :D

Just to say that I'm also French an dthat I also posted at least two times a complete set of functions to send emails with multiple attachments :D
0
edm19Author Commented:
I am testing the PHPFormmail, has pcaylor sugested but if anything goes wrong,
VGR, where can I find that set of funtions?
0
Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
edm19Author Commented:
I am testing the PHPFormmail, has pcaylor sugested but if anything goes wrong,
VGR, where can I find that set of funtions?
0
edm19Author Commented:
I just put some changes, and it worked just fine. Thanks
0
VGRCommented:
ok, then grade "A" please 8-)
0
VGRCommented:
which changes ???
0
edm19Author Commented:
Nothing special! It was adapted to be used with a form.

- A function for testing email
- There is the chance for the user to sent the form without any attachment and also there is a limitation related to the attachments extentions that are alowed to be sent. For that I also created diferent messages/solutions to be sent for the user and the receiver of the form fields.

Thats it!
0
pcaylorCommented:
VGR,

The comment about French wasn't meant as an insult, just that not everyone here reads French.  (I can't but enough years of Latin helps me to get the gist of it.)

-Peter
0
VGRCommented:
I know it wasn't insulting 8-)
It was not 8-)
Being French is more a Gift from God than a shame :D
0
edm19Author Commented:
Nothing special! It was adapted to be used with a form.

- A function for testing email
- There is the chance for the user to sent the form without any attachment and also there is a limitation related to the attachments extentions that are alowed to be sent. For that I also created diferent messages/solutions to be sent for the user and the receiver of the form fields.

Thats it!
0
VGRCommented:
which extensions, please ? So that I update my code 8-)
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
PHP

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.