leidieu Posted December 18, 2009 Share Posted December 18, 2009 Hi all, i was wondering if any one can help me out with this problem.I'm trying to find a way to remove my inline image from the attachment option. Every time i send an inline image its comes in the attachment....any ideas how i can prevent it from coming in the attachment header? Here is the code:- $mail->From = "[email protected]"; $mail->AddAddress("[email protected]"); $mail->Subject = "Inline image test"; $mail->Body = "Hello, <b>my friends here is the image</b>! \n\n <img alt=\"\" src=\"cid:email_prize\" width=\"181\" height=\"157\" >"; $mail->AddEmbeddedImage("images/email_prize.GIF", "email_prize", "images/email_prize.GIF"); $mail->IsHTML(true); if(!$mail->Send()) { echo 'Message was not sent.'; echo 'Mailer error: ' . $mail->ErrorInfo; } else { echo 'Message has been sent.'; } Quote Link to comment https://forums.phpfreaks.com/topic/185561-how-to-remove-inline-image-from-the-attachment-header/ Share on other sites More sharing options...
oni-kun Posted December 18, 2009 Share Posted December 18, 2009 It should always be an attachment. You could either: 1) Display the image via an external link 'yourdomain.com/image.gif' 2) Attach the image, and display it within the e-mail, not leaving it just as an attachment. Quote Link to comment https://forums.phpfreaks.com/topic/185561-how-to-remove-inline-image-from-the-attachment-header/#findComment-979679 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.