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 = "[email protected]"; 
$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
https://forums.phpfreaks.com/topic/178325-email/#findComment-940307
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
https://forums.phpfreaks.com/topic/178325-email/#findComment-940313
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 = "[email protected]";
$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
https://forums.phpfreaks.com/topic/178325-email/#findComment-940346
Share on other sites

<?PHP
$to = "[email protected]";
$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
https://forums.phpfreaks.com/topic/178325-email/#findComment-940656
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.