send mail with attachment from flash form with php

Posted on 2007-10-18
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
    LVL 21

    Accepted Solution

    Hi, would this help?

    Let me know how you get on.
    LVL 13

    Assisted Solution

    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.
    LVL 39

    Author Comment

    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.

    LVL 21

    Expert Comment

    No problem good luck :)
    LVL 39

    Author Comment

    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

    Glad to help :)

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Join & Write a Comment

    Suggested Solutions

    Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
    Part of the Global Positioning System A geocode ( is the major subset of a GPS coordinate (, the other parts being the altitude and t…
    This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
    The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

    745 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

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now