Results 1 to 2 of 2

Thread: Send html email using PHP with Gmail

  1. #1
    Join Date
    Oct 2007
    Beans
    11
    Distro
    Edubuntu 10.10 Maverick Meerkat

    Send html email using PHP with Gmail

    Hi all, I have a Ubuntu 10.10 installation, with a working PHP environment.
    Now I would like to try sending mail using PHP with Gmail.
    I have this already working in combination with exim4.
    But right now I can only send plain text messages, and I would like to send my mails with html format. Is it even possible to send html mails with exim4?
    Or do I need another setup, like suggested in the following blogpost?
    http://deepakssn.blogspot.com/2006/0...-php-with.html

    This blogpost is already a few years old, so perhaps there are better solutions around!
    I hope you guys can help me around.

  2. #2
    Join Date
    Sep 2007
    Location
    Paterna, Spain
    Beans
    Hidden!
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Send html email using PHP with Gmail

    The best is you read this page from php.net, in the examples there is a way to send simple html messages:

    http://php.net/manual/en/function.mail.php

    Or better than the mail function you also can use Pear::Mail_Mime

    http://pear.php.net/package/Mail_Mime

    Hope this helps.
    Think free, use free, be free 8)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •