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 9045413
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T11:18:35+00:00 2026-06-16T11:18:35+00:00

I have a PHP Script to send an email using PHP mail. $mail->AltBody =

  • 0

I have a PHP Script to send an email using PHP mail.

$mail->AltBody = 'To view the message, please use an HTML compatible email viewer!'; // optional - MsgHTML will create an alternate automatically
$mail->MsgHTML("

<body>
<img src=`hulaminlogo.jpg`>&nbsp;&nbsp;&nbsp;&nbsp;
<br>
<h3>Load Number $loadnumber has been revoked by LOC.</h3><br>
</body>

");
$mail->Send();

The MsgHTML, works correctly however the <img src="hulaminlogo.jpg"> does not display. I have tried with ” as well. ” does not work as it ends the value MsgHTML.

How can I correctly format this syntax so the image displays correctly?

  • 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-16T11:18:37+00:00Added an answer on June 16, 2026 at 11:18 am

    Nikola is correct that adding the full url to the img will alow the client to find and render the content – but by default most browsers won’t go fetch content unles explicitly told to do so. Simply adding the iage as an attachment won’t help – some MUAs might render it, most won’t. There’s 2 options for embedding the image within the email.

    1. use mhtml to create a composite MIME attachment (works with MS clients but not much else, requires a lot of re-writing of code)

    2. use data uris (requires a fairly up to date client but only needs minimal changes to your code)

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

Sidebar

Related Questions

I'm using Eoghan's PHP Simple Mail script to send emails. I have an application
I have a PHP script through which I send HTML emails. I'm using a
I have a HTML form which is using a simple PHP mail() script to
I need your help. I have a php script to send email to people
Having big problems trying to get my php script to send email. Using this
I'm using PEAR's Mail package to send email from my script. I'm pretty sure
Possible Duplicate: Sending mass email using PHP I have a PHP script that sends
I'm using the PHP Pear Mail_Mime library to send email. In my script, I
I have two servers. One (linux) will send mail fine using the script below.
I am using php's mail() function to send an email from a php scrpit,

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.