I have loaded an image from a file then added text to that image via PHP.
I now need to email that image off with the text on it. I have not saved the image on the server so normal image attachments dont seem to work.
This is the image PHP to send to a browser
// Send Image to Browser
imagejpeg($jpg_image);
// Clear Memory
imagedestroy($jpg_image);
and I tried to add it to this script to send the email.
$message = "Result \r\n";
$message .= $jpg_image;
$to = $email;
$subject = "Result";
$headers = "From: results@url.com\r\n";
$headers .= "Reply-To: user@url.com\r\n";
$headers .= "Return-Path: user@url.com\r\n";
$headers .= "BCC: user2@url.com\r\n";
mail($to, $subject, $message, $headers);