I generate an image using the imagecopymerge function
// źródło$im = imagecreatefromjpeg("https://....../img/3.jpg");// Nagłówek pliku headerheader('Content-Type: image/jpeg');imagejpeg($im);// Zniszcz obrazimagedestroy($im);
I get this image in a browser window. However, I would like to send it in an email as html
$message = '<html><body>';$message .= '<img src=" ?????? " alt="Obraz ze strony WWW" />';$message .= "</body></html>";$to = "...@mail.com";$subject = "Obraz ze strony WWW";$headers = "Content-Type: text/html; charset=ISO-8859-1\r\n";mail($to,$subject,$message,$headers);
Unfortunately, I do not know if it is possible to do it in this way? What is the address of the image 'src' supposed to be?