send mail with attachment from flash form with php

Posted on 2007-10-18
Medium Priority
Last Modified: 2013-12-13
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.
Question by:blue-genie
  • 3
  • 2
LVL 21

Accepted Solution

nizsmo earned 750 total points
ID: 20104047
Hi, would this help?


Let me know how you get on.
LVL 13

Assisted Solution

rhickmott earned 750 total points
ID: 20107296
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 http://phpmailer.sourceforge.net/ its prob the easiest way for sending mail from php with attachments.
LVL 39

Author Comment

ID: 20199373
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.

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

LVL 21

Expert Comment

ID: 20200186
No problem good luck :)
LVL 39

Author Comment

ID: 20365317
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.
LVL 21

Expert Comment

ID: 20369946
Glad to help :)

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
There are times when I have encountered the need to decompress a response from a PHP request. This is how it's done, but you must have control of the request and you can set the Accept-Encoding header.
In this tutorial viewers will learn how to create a basic motion tween animation in Flash Open a new document in Flash: Draw/import an image: Press CTRL + F8 to convert it into a graphic symbol: Select a frame (how long you want the tween to last): …
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
Suggested Courses
Course of the Month13 days, 16 hours left to enroll

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question