Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8949617
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T13:15:36+00:00 2026-06-15T13:15:36+00:00

Possible Duplicate: php image display without download in mail I have a PHP web

  • 0

Possible Duplicate:
php image display without download in mail

I have a PHP web application which create wishes card and send them with the PHP mail() function.
The wishes card is build with HTML and part of the card are illustrations, those illustrations use jpg images inside an IMG tag. The images are hosted on a server so images paths use a complete link (like http:/domain.com/img.jpg).

When the card is received, for exemple with thunderbird, it says images are blocked and the user has to click on a button to show the images.
I understand it’s a security mesure.
That’s still annoying for a whishes card which is meant to be discover with its illustrations.

So, i’m looking for any though, any light, in a way to prevent email clients from blocking images.

Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T13:15:37+00:00Added an answer on June 15, 2026 at 1:15 pm

    Embed the image in the email, I strongly recommend something like phpMailer to do this.

    From their documentation:

    Inline Attachments

    There is an additional way to add an attachment. If you want to make a
    HTML e-mail with images incorporated into the desk, it’s necessary to
    attach the image and then link the tag to it.
    For example, if you add an image as inline attachment with the CID
    my-photo, you would access it within the HTML e-mail with &ltimg
    src=”cid:my-photo” alt=”my-photo” />.

    In detail, here is the function to add an inline attachment:
    $mail->AddEmbeddedImage(filename, cid, name); By using this function
    with this example’s value above, results in this code:
    $mail->AddEmbeddedImage(‘my-photo.jpg’, ‘my-photo’, ‘my-photo.jpg ‘);

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: Image resizing web service many web provider have support for php but
Possible Duplicate: PHP create a file without fopen I want to create a file
Possible Duplicate: php loop through associative arrays i have a variable which prints an
Possible Duplicate: Saving image from PHP URL I have an image as a url
Possible Duplicate: Force Download an Image Using Javascript Basically I want to have the
Possible Duplicate: .htaccess rewrite image file to php script How can I execute a
Possible Duplicate: Can anybody suggest the best image resize script in php? I'm still
Possible Duplicate: PHP Get end string on url between / and / I have
Possible Duplicate: php false place in condition I have noticed that a lot of
Possible Duplicate: How to resize an image using PHP? Here's what I've tried: $image

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.