SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Thread: Bold E-Mail

Hybrid View

  1. #1
    JavaScript Guru (Big Ego) Arielladog's Avatar
    Join Date
    Jul 1999
    Location
    SC, USA
    Posts
    390
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    How can I make PHP so that it bolds some text when I send an email. Is there a way to configure the email in PHP so that it recognizes HTML codes?

    aDog

  2. #2
    JavaScript Guru (Big Ego) Arielladog's Avatar
    Join Date
    Jul 1999
    Location
    SC, USA
    Posts
    390
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I figured it out. If I just did this:

    $header="Content-Type: text/html;
    charset=\"iso-8859-1\"";

    then, I could use:

    mail($emailAddress,$subject,$body,$header);

    Using that heade,r I could just use HTML code as the body.

    aDog


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
  •