secure email

Posted on 2012-08-28
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
    LVL 7

    Assisted Solution

    Use html format email with phpmailer.
    LVL 16

    Assisted Solution

    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 82

    Assisted Solution

    by:Dave Baldwin
    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 107

    Assisted Solution

    by:Ray Paseur
    Please consider using a service like

    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

    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

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    This article will describe some of the best ways to process an ex-employee from an Office 365 subscription. I will describe the methods I would recommend when the data needs to be kept for the ex-employee as well as how to manage any new email as we…
    This article covers general Notes 8.5 troubleshooting information including recreating the Notes\Data folder.
    The purpose of this video is to demonstrate how to set up Lists in Mailchimp. This will be demonstrated using a Windows 8 PC. Mailchimp will be used. Log into your Mailchimp account. : Click on Lists. Click on Create List Button : Choose the desi…
    The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

    732 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

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now