send mail with attachment from flash form with php

i've been googling and searching, a friend of mine asked me how to send an attachment with flash form/php, i dont' know php, someone point me on cans and can'ts - and a tutorial or example to point him to?
thanks peeps.
LVL 39
Who is Participating?
Hi, would this help?

Let me know how you get on.
Robin HickmottSoftware DeveloperCommented:
Are you using an attatchment that already exists on the server or sending one that the user uploads? if so you just need to use a mail handling class or cleverly adaprt the mail() headers to include an attachment ( I would suggest the former its a bit more complex at first if your not familiar with classes ) but you can build the mail a lot more easily.

You then need to simply use loadVars and loadAndSend or similar to instruct php of the rest of the data and it can build your mail.

If your sending a file that you want a user to upload then you will need to get flash to upload it somewhere on the server and then use PHP to send the file avec atttachment in the same way as before.

Link to PHPMailer is below its prob the easiest way for sending mail from php with attachments.
blue-genieAuthor Commented:
sorry totally forgot about this.
i havent' spoken to my mate yet so i don't know if he came right.
if i can just leave this open for a while i still want to have a look into it for my own FYI.

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

No problem good luck :)
blue-genieAuthor Commented:
sorry guys, he's moved house and gone awol - so i'm gonna close this and add it to the KB so i can come back to it should he ever ask again.
thanks. for your time.
Glad to help :)
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.

All Courses

From novice to tech pro — start learning today.