garydt Posted December 16, 2007 Share Posted December 16, 2007 I'm trying to get embedded images into email. I've got- $subject = "Message from $user (elvis-people)"; $headers = "From: $from\r\n" . 'X-Mailer: PHP/' . phpversion() . "\r\n" . "MIME-Version: 1.0\r\n" . "Content-Type: text/html; charset=utf-8\r\n" . "Content-Transfer-Encoding: 8bit\r\n\r\n"; $body = "<HTML><BODY><CENTER> <TABLE BORDER='1'><TR><TD align='center'><FONT COLOR='MAROON'><B><BIG> Here is an image!</BIG></B></TD></TR> <TR><TD align='center'><img src='logo.gif'></TD></TR> </CENTER></BODY> </HTML>"; mail($to, $subject, $body, $headers); I get the table but no image, just the box with the red cross. Link to comment https://forums.phpfreaks.com/topic/81914-solved-embedded-images-email/ Share on other sites More sharing options...
~n[EO]n~ Posted December 16, 2007 Share Posted December 16, 2007 You must use full path like <img src='http://www.yoursite.com/images/logo.gif'> Link to comment https://forums.phpfreaks.com/topic/81914-solved-embedded-images-email/#findComment-416186 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.