Miss-Ruth Posted October 20, 2009 Share Posted October 20, 2009 Hello!! Any PHP guy with a bit of a knowledge in Flash ? When I send a JPEG from flash how to get it to email in PHP. Quote Link to comment Share on other sites More sharing options...
Miss-Ruth Posted October 20, 2009 Author Share Posted October 20, 2009 :'( Atleast could someone give a try. $output is the file which is been send by flash. PHP $to = "abc@cba.com"; $subject = "subjesct"; $headers = "From:" .$email."\r\n"; $message = "Name: " . $name; $w = 'width'; $h = 'height'; $img = output($w, $h); $message. = "<img src=\"output\" >"; Quote Link to comment Share on other sites More sharing options...
ILMV Posted October 20, 2009 Share Posted October 20, 2009 Right... 1) Sometimes it might take more than 30 minutes to respond to your post... 2) Especially if it offers no description to the actual problem. 3) Also, if you post back to your own thread it looks as if someone has answered it already. Could you explain in more detail what you are trying to achieve and what the problem is. ILMV Quote Link to comment Share on other sites More sharing options...
Miss-Ruth Posted October 20, 2009 Author Share Posted October 20, 2009 Thanks ILMV. This is the script I've done so far. when a image is been sent from flash ($output), I need it to display the image + the other data as a HTML email using PHP. I dunno whether it's too much But please get started and then there will be a limit. <?PHP $to = "abca@mail.com"; $subject = "the subject"; $headers = "From:" .$email."\r\n"; //Capture Post data $data = explode(",", $_POST['output']); $width = $_POST['width']; $height = $_POST['height']; $message = "Name: " . $thename; $message .= "\nCompany or Club Name: " . $thecompany; $message .= "\nAddress: " . $theaddress; //Output image and clean header( "Content-type: image/jpeg" ); ImageJPEG( $output ); imagedestroy( $output ); ?> Quote Link to comment Share on other sites More sharing options...
MatthewJ Posted October 20, 2009 Share Posted October 20, 2009 <?PHP $to = "abca@mail.com"; $subject = "the subject"; $headers = "From:" .$email."\r\n"; $headers .= 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; //Capture Post data $data = explode(",", $_POST['output']); $width = $_POST['width']; $height = $_POST['height']; $message = "Name: " . $thename; $message .= "\nCompany or Club Name: " . $thecompany; $message .= "\nAddress: " . $theaddress; //Send mail($to, $subject, $message, $headers); //Output image and clean header( "Content-type: image/jpeg" ); ImageJPEG( $output ); imagedestroy( $output ); ?> That will send the email, you just need to get the image added to it. Quote Link to comment Share on other sites More sharing options...
Miss-Ruth Posted October 20, 2009 Author Share Posted October 20, 2009 Thanks Matt. I'll give it a try right away and get back to you. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.