Using outlook I can send emails with images inserted into message body(not as attachment). How can i do that using mail() function from PHP?
Using outlook I can send emails with images inserted into message body(not as attachment).
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you don’t want to host the images someplace and would them to to be included inline, you’ll need to do is encode them, insert the encoded text and reference them by ID. PHPmailer handles this pretty nicely (see Inline Attachments):
http://phpmailer.worxware.com/index.php?pg=tutorial#3
Otherwise, you can just reference them by their web address as described in the other posts.