Jump to content

Email "$"


Miss-Ruth

Recommended Posts

:'(

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\" >";

Link to comment
Share on other sites

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

Link to comment
Share on other sites

Thanks ILMV.  :D

 

 

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 ); 
?>

Link to comment
Share on other sites

<?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.

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.