[Last Call] Learn how to a build a cloud-first strategyRegister Now


secure email

Posted on 2012-08-28
Medium Priority
Last Modified: 2012-09-01
i m using php mail function
when i send it to gmail it shows the picture when i click on display image but not the same if i have hotmail account ..
is there a way that it will be all the same for emails accounts with different mail clients
any help please
Question by:asaidi

Assisted Solution

amitnepal earned 400 total points
ID: 38342941
Use html format email with phpmailer.
LVL 16

Assisted Solution

grahamnonweiler earned 400 total points
ID: 38342999
You will have to send the image as an "inline attachment"

This means that in the HTML body of the email where you have placed the <img> tag, the image is incuded as an attachment with the actual message. The image is then displayed from the attachment instead of looking for it over the web.

While it is possible to do this using the native PHP MAIL() function it does require creating a "multi/part alternative" HTML body and attachment message. The actual image  needs to base64_encoded and added as one of the "parts" to the message.

If your level of PHP coding experience is high then I can post an example - otherwise I would recommend you try to use PHPMailer - and look for a tutorial on "multi part alternative" email creation.
LVL 84

Assisted Solution

by:Dave Baldwin
Dave Baldwin earned 400 total points
ID: 38343196
Without extensive testing with many different email clients, we can not guarantee that your email will look the same in all of them.  Since they all use different methods and have different restrictions on the HTML they display, getting it to look Exactly the same is near impossible.  Even if you use images, the users have to unblock them to see them in many email clients.
LVL 111

Assisted Solution

by:Ray Paseur
Ray Paseur earned 400 total points
ID: 38343847
Please consider using a service like ConstantContact.com.

Email is a "bag of worms" to coin a technical term.  It's not worth your time to try to learn all the ins and outs.  The folks at ConstantContact have a full time job (and business) because they study all of the aspects of email and they make it work.  You're just one person; you cannot do what they do any more than you can build bicycles from sticks. Trust me -- I sent my own email for years and after years of thankless work running down email errors, I turned the entire operation over to CC (in 2008).  It has worked flawlessly ever since, with none of the headaches that we had before.  

ConstantContact is dependable, returns good statistics and is always expanding their offerings.  Plus, they are embarrassingly inexpensive for the value they offer.  They do not pay me to say this; I pay them and I am a happy customer.  There are competitors and you may find a service you like better, but I am happy with CC.

Best regards and best of luck with your project, ~Ray
LVL 36

Accepted Solution

Loganathan Natarajan earned 400 total points
ID: 38344103
I have been used phpmailer to send mails to support all the email clients like gmail, hotmail, yahoo etc., it worked well. Try that.

Ref. example how to use,



Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: Dermot
The life of crime is over for 22 year-old Christian Ian Salvador, a student from Isabela State University in the Philippines.
There are times when I have encountered the need to decompress a response from a PHP request. This is how it's done, but you must have control of the request and you can set the Accept-Encoding header.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
This Micro Tutorial demonstrates  how Internet marketers work with competitive analysis data, and a common task in data preparation is creating separate column for domains. You will then extract from a list of URLs.
Suggested Courses
Course of the Month18 days, 5 hours left to enroll

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question