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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T09:30:12+00:00 2026-05-13T09:30:12+00:00

I am trying to imbed an image in my php emails and use as

  • 0

I am trying to imbed an image in my php emails and use as a signature. Meaning at the end of the email I want to have an image. I have tried many different combinations and for the most part am not getting the image to appear. Are there size restrictions for images or am I just doing in a way that is making it to heavy? A few things I have tried have not allowed the emails to even show up. Here is my code:

$to = $Email;
$subject = "$auth->first_name $auth->last_name left you a comment";
$message =  "$auth->first_name $auth->last_name left you a comment: <br /><br /> <a href='http://www.blah.org/Profile.php?id=" . $prof->id . "'>Click here to view</a><img src='http://www.blah.org/styles/images/blah.jpg'/>";
$from = "blah<noreply@blah.org>";
$headers  = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
$headers .= "From: $from";
mail($to, $subject, $message, $headers);

I have also tried making an extension of $message like this:

.=$messages = “http://www.blah.com/styles/images/blah.jpg’/>”;

Any suggestions for the most light weight and solid way to do this?

I have gotten the PHPMailer suggestion but would prefer to just add on to what I already have.

  • 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-05-13T09:30:13+00:00Added an answer on May 13, 2026 at 9:30 am

    I’d say use a class like PHPMailer. They have worked out all the details, and there is not that much room for better or worse efficiency when composing a rich E-Mail, so mails created with it will hardly be any bigger than if you encoded them yourself.

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

Sidebar

Related Questions

Trying to convert a perl script to php. In perl I have a hash
Trying to send a PHP email the easy way but I cannot work out
I am trying to imbed a scrollView in the detail side of a splitViewController.
trying to figure out why this is happening - I have an input text
Trying to use log4j's built-in JMSAppender to log messages to a local message queue
Trying to find: Show the top-20 PIs who have the largest total amount of
Trying to do some unit testing with EF 4.1 code first. I have my
trying to get my first HTML/CSS uni assignment sorted but have become a bit
Trying to do something really simple, but can't figure out the syntax. I have
Trying to understand this entry in the php manual on debug_backtrace . I don't

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.