SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Enthusiast
    Join Date
    Oct 2000
    Location
    Lincolnton
    Posts
    56
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi everyone, i was wondering if it is possible to send an HTML email using the PHP mail() function? I tried this

    mail("my@email.com","Testing HTML email","<html><body bgcolor=#C8C8C8><center><font face=VERDANA size=2 color=red>testing html email</font></center></body></html>","From: \"Link-spy.com\" support@link-spy.com\n");

    and it didnt' work. I just got the html as text in my email.
    I know i can receive html email because I get the Lockergnome html email everyday and it works fine.

    Anybody have any experience with this?
    Thanks,
    Andy

  2. #2
    SitePoint Zealot cokeman's Avatar
    Join Date
    Dec 2000
    Location
    So. California
    Posts
    173
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    http://www.zend.com/zend/trick/html-email.php

    You need to specify the MIME content you are sending.


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
  •