Quantcast
Channel: Active questions tagged email - Stack Overflow
Viewing all articles
Browse latest Browse all 29934

Sending graphics generated using imagecopymerge on email

$
0
0

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?


Viewing all articles
Browse latest Browse all 29934

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>