Home / Components / User Interface / Contact Form: Mail with Attachments /

Contact Form: Mail with Attachments

65 purchases

pinosh User Interface Contact Form: Mail with Attachments Very easy to use Flash-PHP-mail-form with files attachments support. Some nice settings to set in a XML file as well. Flash CS3 file coded in AS3.0 OOP style. $10.99 http://www.flashcomponents.net/component/contact_form_mail_with_attachments.html http://www.flashcomponents.nethttp://u1.flashcomponents.net/components/small/1465_1.png

License:

By purchasing and downloading this license, you are entitled, as buyer, to use the product in ONE SINGLE NON-COMMERCIAL PROJECT ( website or other ... [+]

> View graphic table with full license features

$10.99

buy now

Package includes: FLA

Flash Version: Flash CS3, Flash CS4

Viewable with: Flash Player 9

Action Script: ActionScript 3.0

Product ID:F0901465

Author:

pinosh

pinosh avatar

Hi, My name is Ovidiu, Available for your projects, or customizations: as a freelancer! I am a flash...

 

Please install flash first.

This is a small and simple, easy to use Flash-PHP-mail-form with some nice settings to set in a XML file. Things like error messages, default texts in fields, fields to be cleared upon close, path to PHP sendmail file, title of the form, labels... MAX file size for attachments, file type filters, upload script path... These can be easily set in the XML configuration file. The file is CS3, using AS3.0 OOP style.

Settings can be configured in a XML file:

- error messages to be displayed when the form is submitted with unproperly formatted fields;
- default texts in fields;
- fields to be cleared upon form closing;
- title of the form and labels;
- path to sendmail script PHP file;
- path to upload script file.

The form sends a confirmation mail to the mail you pass in as your mail. The body of this confirmation mail can be changed in globals.php file: this confirmation mail also contains a copy of the original mail

Mail validation included.

PHP files included:
sendmail.php
globals.php
upload_file.php
mime_fake.php

Open globals.php and edit the various constants there to reflect your identity.
The path to the sendmail.php and upload_file.php file can be set in the xml file.
sendmail.php, globals.php and mime_fake.php files must be placed in the same location where the upload_file.php file is located, an empty files directory must be created: this is where the uploaded file (attachments) will be temporary stored, and deleted after the mail is sent; the directory must be empty and allow php to access it read/write

Files can be attached or deleted in any order. To delete an attached file, click it's name on the list, and wait for the red delete button to show. Then press the delete button and the file will be deleted.

When attaching files, if one file is bigger than the max allowed size set in the XML (in KB) that file is not attached and no warning is issued.

You can try this demo to see how it works.
If you set a valid mail, you will receive the confirmation mail along with a copy of the message you're sending (with attachments too :) )



EDIT

The demo is not functional anymore.
A new version is available, v1.2.
Added a new parameter in globals.php.
Fixed some issues and made more robust.
I strongly suggest updating to this new version.

For changes and instructions please consult my blog page:
http://www.blog.ovidiudiac.ro/?p=26

$10.99

buy now

License:

Personal License By purchasing and downloading this license, you are entitled, as buyer, to use the product in ONE SINGLE NON-COMMERCIAL PROJECT ( website or other multimedia project not generating income ), your personal work or work for a client. You may not redistribute / resell the functionality provided with the purchased product without the author's and / or FlashComponents.net written permission, but you may modify its content. In case you want to use the product for a commercial project then you will have to buy the 'Commercial License'.

Usage Terms: Personal Commercial Multiple
Use in ONE SINGLE NON-COMMERCIAL project
Unlimited use in the same project
Use in ONE SINGLE COMMERCIAL project
For your client's ONE SINGLE COMMERCIAL project
MULTIPLE COMMERCIAL projects
For your client's MULTIPLE COMMERCIAL projects

Please install flash first.

Please install flash first.

Other by pinosh:

DOPly  Player

This player has been designed with ease of use ...[+]

More >>

Simple Banner/ Gallery XML

Simple Banner with a few cool features like: 4 ...[+]

More >>

Flash Mail Form

This is a small and simple, easy to use flash-p...[+]

More >>

Related components:

Contact Form AS 3.0

Actionscript 3.0 Flash XML Contact Form.

More >>

CMS Contact Form - PHP

CMS Contact Form - Video Help & Free Support.

More >>

ASP Flash Contact Form with HTML Labels

ASP Flash Contact Form 01. Includes validation,...[+]

More >>

1 / 17

Featured components:

PhotoFlip 3D CS AS3

Build real time 3D cover flow effect with Photo...[+]

More >>

HTML / XML Video List AS2 - v2 ( & FLV Player )

This is the second version of the HTML / XML V...[+]

More >>

AS 3.0 XML Video Player

This AS 3.0 Video Player XML plays any kind of...[+]

More >>

40 comments

Add comment

  • Under Windows there is a bug in php mail function.
    See this link php bug.
    There can be constructed a workaround to this problem.
    Also you should make sure you correctly configured your smtp server inside php.ini.
    I will post in the shortest time possible a resolution to this problem.

    Ovidiu



    #  /  PM  /  posted on Apr 06, 2009
  • Thx for the fast answer !


    I’m just gonna change my server to a linux one, it’s easier.
    Is xml 3.0 needed also ? I saw xml version 1.0 in the contact.xml but I want to make sure that xml 3.0 isn’t needed cause my linux server proposal doesn’t support xml 3.0.


    thx in advance



    #  /  PM  /  posted on Apr 06, 2009
  • Hi Limou,


    Sorry for not answering to you sooner, but for some reason i didn’t receive the notice mail about your new comment.
    You don’t need xml version 3, you only need v1.0 and i think you won’t have any problems regarding this.


    Best regards,
    Ovidiu



    #  /  PM  /  posted on Apr 10, 2009
  • Hi Pinosh,


    Thank you for the answer.


    I have changed my server to a linux one but there is still a problem, their SMTP blocks emails unless “from”, “reply-to” and “return-path” headers are present I have found some info at http://www.howtoforge.com/sending_email_from_php but the sendmail.php being way more complex than their example, I can’t manage to add the right things to the right places. Could you give me a hand on this ?


    I’m sorry for all those requests but i’m far from being a php expert as you probably guessed.


    Thank you in advance.


    Best regards,
    Limou



    #  /  PM  /  posted on Apr 30, 2009
  • Hi,


    This is very simple:


    Find the line
    mail($TO, $SUBJECT, $message, “From:”.$yourname.” <”.$yourmail.”> MIME-Version:1.0”. $content_type)


    and change it to
    mail($TO, $SUBJECT, $message, “From:”.$yourname.” <”.$yourmail.”> Reply-To: “.$yourmail.” Return-Path: “.$yourmail.” MIME-Version:1.0”. $content_type)


    Also find this line
    mail($yourmail, $CONFIRMATION_SUBJECT, $CONFIRMATION_MESSAGE, “From:”.$CONFIRMATION_NAME.” <”.$CONFIRMATION_MAIL.”> MIME-Version:1.0”.$content_type);


    and change it to
    mail($yourmail, $CONFIRMATION_SUBJECT, $CONFIRMATION_MESSAGE, “From:”.$CONFIRMATION_NAME.” <”.$CONFIRMATION_MAIL.”> Reply-To: “.$CONFIRMATION_MAIL.” Return-Path: “.$CONFIRMATION_MAIL.” MIME-Version:1.0”.$content_type);


    That’s it.
    Let me know how it works.
    Ovidiu



    #  /  PM  /  posted on Apr 30, 2009
  • Those line are situated in sendmail.php
    :-)



    #  /  PM  /  posted on Apr 30, 2009
  • Wow, it looks like CRLF characters are removed from comments.
    Here is how the new lines should look.


    Find the line

    mail($TO, $SUBJECT, $message, "From:".$yourname." <".$yourmail.">
    MIME-Version:1.0
    ". $content_type) 
    

    and change it to
    mail($TO, $SUBJECT, $message, "From:".$yourname." <".$yourmail.">
    Reply-To: ".$yourmail."
    Return-Path: ".$yourmail."
    MIME-Version:1.0
    ". $content_type) 
    

    Also find this line
    mail($yourmail, $CONFIRMATION_SUBJECT, $CONFIRMATION_MESSAGE, "From:".$CONFIRMATION_NAME." <".$CONFIRMATION_MAIL.">
    MIME-Version:1.0
    ".$content_type); 
    

    and change it to
    mail($yourmail, $CONFIRMATION_SUBJECT, $CONFIRMATION_MESSAGE, "From:".$CONFIRMATION_NAME." <".$CONFIRMATION_MAIL.">
    Reply-To: ".$CONFIRMATION_MAIL."
    Return-Path: ".$CONFIRMATION_MAIL."
    MIME-Version:1.0
    ".$content_type); 
    



    #  /  PM  /  posted on May 01, 2009
  • They are still stripped:
    Anyway, the headers should be separated by CRLF characters.



    #  /  PM  /  posted on May 01, 2009
  • Hi there. I bought your Mail with attachments v1.2 component and Its not working for me. The problem it its not sending emails so I need to know what version of .php it this componet written in?



    #  /  PM  /  posted on May 01, 2009
  • Hi,
    You need php 5.x



    #  /  PM  /  posted on May 02, 2009
  • Hi again pinosh,


    Thanks for your answer,


    if I understand correctly the end of sendmail.php should read:


    if(mail($TO, $SUBJECT, $message, “From:”.$yourname.” <”.$yourmail.”>/nReply-To: “.$yourmail.”/nReturn-Path: “.$yourmail.”/nMIME-Version:1.0
    “. $content_type)) { echo “<status message=‘sent’ />”; mail($yourmail, $CONFIRMATION_SUBJECT, $CONFIRMATION_MESSAGE, “From:”.$CONFIRMATION_NAME.” <”.$CONFIRMATION_MAIL.”>/nReply-To: “.$CONFIRMATION_MAIL.”/nReturn-Path: “.$CONFIRMATION_MAIL.”/nMIME-Version:1.0
    “.$content_type); } else { echo “<status message=‘error’ />”; }
    ?>


    ?



    #  /  PM  /  posted on May 05, 2009
  • Yes,
    Except that /n should be\r\n



    #  /  PM  /  posted on May 05, 2009
  • hi pinosh !


    Thank you for the answer… but it still doesn’t work !
    i had an answer from my server webmasters.


    They send me this as exemple :


    <?php
    $headers =‘From: “test oleane”<[email protected]>’.” ”;
    $headers .=‘Return-Path: [email protected]’.” ”;
    $headers .=‘Reply-To: [email protected]’.” ”;
    $headers .=‘Content-Type: text/plain; charset=“iso-8859-1”’.” ”;
    $headers .=‘Content-Transfer-Encoding: 8bit’;


    if(mail(‘[email protected]’, ‘test formulaire’, ‘message avec
    enveloppe complete’, $headers))
    {
    echo ‘Le message a bien ?t? envoy?’;
    }
    else
    {
    echo ‘Le message n‘a pu ?tre envoy?’;
    }
    ?>


    Does-it help you to solve the problem ?




    #  /  PM  /  posted on May 06, 2009
  • sorry some accents did not appear correctly :


    this is better :


    <?php
    $headers =‘From: “test oleane”<[email protected]>’.” ”;
    $headers .=‘Return-Path: [email protected]’.” ”;
    $headers .=‘Reply-To: [email protected]’.” ”;
    $headers .=‘Content-Type: text/plain; charset=“iso-8859-1”’.” ”;
    $headers .=‘Content-Transfer-Encoding: 8bit’;


    if(mail(‘[email protected]’, ‘test formulaire’, ‘message avec
    enveloppe complete’, $headers))
    {
    echo ‘Le message a bien ete envoye’;
    }
    else
    {
    echo ‘Le message n‘a pu etre envoye’;
    }
    ?>




    #  /  PM  /  posted on May 06, 2009
  • Hi,
    I don't think that's going to work either.

    \r\n it is CRLF which is "backslash"r"backslash"n
    These characters must separate the headers.

    Just like in this comment here http://www.php.net/manual/en/function.mail.php#88302

    Ovidiu



    #  /  PM  /  posted on May 06, 2009
  • Hi Pinosh,


    I am person who work with Limou… We still have some problems with program…
    The program is running on a linux server but the message “message not sent” apprear whatever I do.


    I work on the v1.2 on the program.
    I don’t understand anything about php (I program only with Actionscript 3) so I don’t match to find the mistake.


    Do you have a new idea or a process to find where is the bug ?


    Thank you for your help.


    lemathurin



    #  /  PM  /  posted on Dec 18, 2009
  • hello Pinosh


    i am trying to get it work but i am not receiving any attachment in my mail.
    Contact form is showing the progress like everything is OK but then i do not find the file attached.
    I did everything as explained and I checked 5 times :)


    this is the link to my test page
    contact form


    i would appreciate any help.
    Bruno



    #  /  PM  /  posted on Apr 01, 2010
  • ok, now i changed the php version on my server to 5.2.12.
    now i get constantly message MESSAGE NOT SENT. so he even doesn’t send the message.


    ...
    hm… and then when i change back to the php 4.x it says the same… ???
    i am puzzzzzzzled..
    .......
    please help!



    #  /  PM  /  posted on Apr 01, 2010
  • Hi,

    Do you have this email for ASP Version also come with file attachment?



    #  /  PM  /  posted on Jan 08, 2011
  • Hi Mr. When i send a file, name and other informations will be sended to my email, and file will be upload to one folder or ill be sended to my email too ? It ill be upload to a folder, sure?



    #  /  PM  /  posted on Oct 31, 2011
Please login to post comments.