A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: flash email

  1. #1
    Junior Member
    Join Date
    Jul 2004
    Posts
    5

    flash email

    can anyone help. how do i set up a flash email form to send directly from the site without having to open the user email application?

    thanks

  2. #2
    Senior Member
    Join Date
    Oct 2004
    Posts
    2,049
    f your hosting supports php that would be the way to go. Here is an simple mailer script that you can use. Just open notepad and past the code in and save as "Mail.php" or what ever you want to call it with .php at the end.

    PHP Code:
    <?php

    $email 
    "yourEmail@yahoo.com";

    $subject "New Contact";

    $message $_POST['fla_message'];

    mail($email$subject$message"From: $email");

    echo 
    "Message Sent - Please allow up to 24 hours before you here from us. ServerAdmin";

    ?>

    To call the script use

    PHP Code:
    //submit button
    on(release,keyPress "<Enter>"){
    // Checks if fields are blank
        
    if(myname.length ||
               
    myemail.length ||
            
    mymessage.length 1){
            break;
        }else{
              
    // If fields are not blank then submit 
            
    message_from "--------------------------------------"+newline+
            
    "Name: "+myname.text+newline+
            
    "Email : "+myemail.text+newline+
            
    "Message : "+mymessage.text+newline+
            
    "--------------------------------------"
               
    // Create an empty MC to hold data 
            
    this.createEmptyMovieClip("x"1);
            
    x.fla_message message_from;
            
    x.getURL("mail.php""_blank""POST");
            
              
    // clear all fields  
            
    myname.text ""
            
    myemail.text ""
            
    mymessage.text ""
            
    }


  3. #3
    Junior Member
    Join Date
    Jul 2004
    Posts
    5
    thanks "W"
    I will try and let you know how it works out. kuddos to you. Thanks again.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center