Welcome, Guest
  • Author Topic: sending an attachment in a flash email?  (Read 55234 times)

    jozz

    • Server what's that
    • *
    • Posts: 19
      • View Profile
      • Email
    sending an attachment in a flash email?
    « on: 06/30/02, 17:51 »
    I was wandering if anybody knew how to do this.

    I used the tutorial provided on this site to set up sending an email through flash, (which is working fine with a ton of help from you all), but was wanting to know if would be possible to also send an attachment on the end users machine with the email.
    say have an attachment button on the site that will then open up a search for the user to point to the file that the user would like to send to the email address. And then after the user has selected such file it will show up in some text box. and then have it be sent along with the email in flash.

    can anybody point me to some information on this issue? i would be greatful.

    thanks,

    josh

    Silent

    • Jr. Programmer
    • **
    • Posts: 74
      • View Profile
      • Ali Roman Khan Shirani
      • Email
    Re:sending an attachment in a flash email?
    « Reply #1 on: 06/30/02, 21:06 »

    I am also looking for that..And replying here to get the message if anyone else
    replies you..
    Ali Roman Khan Shirani...
    www.romi.vze.com

    Asim

    • Senior Programmer
    • ****
    • Posts: 338
      • MSN Messenger - asimsiddiqui01@hotmail.com
      • Yahoo Instant Messenger - asimsidd2001@yahoo.com
      • View Profile
      • -------------
      • Email
    Re:sending an attachment in a flash email?
    « Reply #2 on: 07/01/02, 09:19 »

    Hi there,
    Its possible to send an email through PHP which will contain an ATTACHMENT...
    But its impossible to send this kind of email through FLASH INTERFACE...
    Because you can't load any file in to flash...
    As its in it because of security...

    But I'll try to do it through JAVA which will call the file and then attach it to the email...

    Regards,
    Asim Siddiqui...
    ..::Asim Siddiqui::..

    Asim

    • Senior Programmer
    • ****
    • Posts: 338
      • MSN Messenger - asimsiddiqui01@hotmail.com
      • Yahoo Instant Messenger - asimsidd2001@yahoo.com
      • View Profile
      • -------------
      • Email
    Re:sending an attachment in a flash email?
    « Reply #3 on: 07/01/02, 09:38 »

    Hi there,
    I've seen the same thing I've told you both...
    In which we can upload any of the picture from our home computer...
    Let me try to make it...

    Regards,
    Asim Siddiqui...
    ..::Asim Siddiqui::..

    jozz

    • Server what's that
    • *
    • Posts: 19
      • View Profile
      • Email
    Re:sending an attachment in a flash email?
    « Reply #4 on: 07/01/02, 17:59 »
    appreciate it, thanks

    josh

    Henry

    • Server what's that
    • *
    • Posts: 1
      • View Profile
      • Email
    Re:sending an attachment in a flash email?
    « Reply #5 on: 07/29/02, 05:25 »
    check out the mime emailer at http://www.bigjolt.com/lab - sends email from flash in multipart format

    cheers
    Henry

    Mike

    • Server what's that
    • *
    • Posts: 25
      • View Profile
      • Email
    Re:sending an attachment in a flash email?
    « Reply #6 on: 08/07/03, 08:15 »
    how´s the attachment project going ?

    and sure, the mime one is nice, but thats just attachments, u cant upload anything with it,

    (not that im sure u can even do it in flash atm, all the solutions i´ve seen for uploading is done with the help of pop ups)

    Musicman

    • Global Moderator
    • Systems Administrator
    • *****
    • Posts: 2685
      • View Profile
      • Email
    Re:sending an attachment in a flash email?
    « Reply #7 on: 08/07/03, 13:22 »
    Hi,

    you definitely cannot upload thru flash - it will always be a html form somewhat disguised.
    As for java - I recently tried to view a java page. It turned out tht I had to instll java plugin which, for whatever reason, comes with a VM of its own rather than using an already installed java kit.
    The net effect - after I successfully added about 100 MB of stuff to my harddisk, it turned out that the applet would work only within IE because the programmer never learned about spaces, forward and backward slashes and other funny characters. I think it is really worth considering to do jobs without the java overhead that do not require it.

    Musicman

    Mike

    • Server what's that
    • *
    • Posts: 25
      • View Profile
      • Email
    Re:sending an attachment in a flash email?
    « Reply #8 on: 08/10/03, 15:32 »
    ah yep i agree with u on java, nowadays it´s better to take alternative solutions if u can.


    Conextar

    • Server what's that
    • *
    • Posts: 3
      • View Profile
      • Email
    Re: sending an attachment in a flash email?
    « Reply #9 on: 01/23/06, 07:56 »
    I am also looking for that! Any help??

    Musicman

    • Global Moderator
    • Systems Administrator
    • *****
    • Posts: 2685
      • View Profile
      • Email
    Re: sending an attachment in a flash email?
    « Reply #10 on: 01/23/06, 17:17 »
    Hi,

    the one thing that has changed in the meantime: flash can now upload the attachment file to the server....

    Musicman

    roger jones

    • Server what's that
    • *
    • Posts: 32
    • http://flashattach.com.com
      • View Profile
      • Flash Addons In A Flash
      • Email
    Re: sending an attachment in a flash email?
    « Reply #11 on: 01/24/06, 10:26 »
    I had been looking for this one for a long time. With the File server now available in flash 8 I think I am getting very close to the holy grail. I will keep an eye on this thread and keep you updated.
    Sick Webmaste Scripts http://www.sickscripts.com
    Flash Addons In A Flash http://www.flashattach.com
    That's Profound! http://www.thatsprofound.com
    Free Flash Email Forms at http://flashmailforms.com
    Webmaster Articles http://www.webhostingpapers.com

    Conextar

    • Server what's that
    • *
    • Posts: 3
      • View Profile
      • Email
    Re: sending an attachment in a flash email?
    « Reply #12 on: 01/25/06, 07:42 »
    Here is a tutorial. This article uses Flash 8 new class FileReference and ASP.NET to create an application to send the emails with the attachment:

    http://www.longoes.com/showByID.aspx?id=25&cat=5


    How about a PHP solution????

    Thanks!

    roger jones

    • Server what's that
    • *
    • Posts: 32
    • http://flashattach.com.com
      • View Profile
      • Flash Addons In A Flash
      • Email
    Re: sending an attachment in a flash email?
    « Reply #13 on: 01/28/06, 08:33 »
    That one is nice, but yes, we really need a PHP solution.
    Sick Webmaste Scripts http://www.sickscripts.com
    Flash Addons In A Flash http://www.flashattach.com
    That's Profound! http://www.thatsprofound.com
    Free Flash Email Forms at http://flashmailforms.com
    Webmaster Articles http://www.webhostingpapers.com

    roger jones

    • Server what's that
    • *
    • Posts: 32
    • http://flashattach.com.com
      • View Profile
      • Flash Addons In A Flash
      • Email
    Re: sending an attachment in a flash email?
    « Reply #14 on: 01/29/06, 01:02 »
    Well, I've done it. I will work on the graphics now. I used a button to move from Jorge's Flash script for uploading to go to the next frame and begin the email process. The php code looks like this.
    Code: [Select]
    <?php 
    $newfile 
    $_POST['thepath'];
    $fileatt $newfile// Path to the file  from Flash variables             
    $fileatt_type "application/octet-stream"// File Type 
    $fileatt_name $_POST['thefile']; // Filename that will be used for the file as the attachment from Flash variables
    $from $_POST['email'];
    $email_from $from// Who the email is from 
    $email_subject "Info From Website"// The Subject of the email 
    $email_txt $_POST['message']; // Message that the email has in it 

    $email_to "webmaster@yoursite.com"// Who the email is too 

    $headers "From: ".$email_from

    $file fopen($fileatt,'rb'); 
    $data fread($file,filesize($fileatt)); 
    fclose($file); 

    $semi_rand md5(time()); 
    $mime_boundary "==Multipart_Boundary_x{$semi_rand}x"
       
    $headers .= "\nMIME-Version: 1.0\n" 
                
    "Content-Type: multipart/mixed;\n" 
                
    " boundary=\"{$mime_boundary}\"";  
    $email_message .= $email_txt "\n\n" 
                    
    "--{$mime_boundary}\n" 
                    
    "Content-Type:text/html; charset=\"iso-8859-1\"\n" 
                   
    "Content-Transfer-Encoding: 7bit\n\n" 
    $email_txt "\n\n";  

    $data chunk_split(base64_encode($data)); 

    $email_message .= "--{$mime_boundary}\n" 
                      
    "Content-Type: {$fileatt_type};\n" 
                      
    " name=\"{$fileatt_name}\"\n" 
                      
    //"Content-Disposition: attachment;\n" . 
                      //" filename=\"{$fileatt_name}\"\n" . 
                      
    "Content-Transfer-Encoding: base64\n\n" 
                     
    $data "\n\n" 
                      
    "--{$mime_boundary}--\n"

    $ok = @mail($email_to$email_subject$email_message$headers); 

    ?>
    You will need to create variables from the upload movie to read the file name and and path and post them to the PHP through the movieclip that has the form. You should also add many extensions to the list unless you just want images. Change the error code in the movie to say, your file was uploaded or something like that. I will show an example and have everything available for download very soon.
    Sick Webmaste Scripts http://www.sickscripts.com
    Flash Addons In A Flash http://www.flashattach.com
    That's Profound! http://www.thatsprofound.com
    Free Flash Email Forms at http://flashmailforms.com
    Webmaster Articles http://www.webhostingpapers.com