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. Quote Link to comment 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'> Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.