Phpmailer send pictures about the problem, the prompt to send a success, but the message does not show the picture

Source: Internet
Author: User
Phpmailer send picture problem, prompt send successful, but the picture in the message does not show
Title, body format is HTML, I made an edit page, in the editing page can be displayed, but the image is in the intranet server, and the path is related to
------Solution--------------------
Send local picture with Addembeddedimage method, example
$id = 1;
$mail->addembeddedimage (' 03.gif ', $id, ' attachment ', ' base64 ', ' image/gif ');
$body. = ';
In the message body will generate
Such a code 

It's too much trouble to do it by hand one by one
So you should write a method that matches the local images in the $body, processing them individually

How to deal with the pictures in the intranet, no intranet can not test
Could you please refer to this http://www.oschina.net/code/snippet_54100_2855
  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.