Colored font

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Ken

    Colored font

    How can I add a font to a php script so the results has colored characters
    when read in Outlook?

    <?php
    $body = " <html><body><fo nt color = '#0000ff'>test</font>This did not
    work.</body><html>";


    $subjectF = "subject";
    mail('email address', $subjectF, $body);
    ?>


  • Rik Wasmus

    #2
    Re: Colored font

    On Tue, 13 May 2008 17:55:21 +0200, Ken <dadk@wi.rr.com wrote:
    How can I add a font to a php script so the results has colored
    characters
    when read in Outlook?
    >
    <?php
    $body = " <html><body><fo nt color = '#0000ff'>test</font>This did not
    work.</body><html>";
    >
    >
    $subjectF = "subject";
    mail('email address', $subjectF, $body);
    ?>
    Google for "multipart mail php".
    Or use one of the several allready existing mail packages in PHP which
    take of this automatically for you.
    --
    Rik Wasmus
    [SPAM] Now temporarily looking for some smaller PHP/MySQL projects/work to
    fund a self developed bigger project, mail me at rik at rwasmus.nl. [/SPAM]

    Comment

    • NC

      #3
      Re: Colored font

      On May 13, 8:55 am, "Ken" <d...@wi.rr.com wrote:
      >
      How can I add a font to a php script so the results has colored
      characters when read in Outlook?
      >
      <?php
      $body = " <html><body><fo nt color = '#0000ff'>test</font>This did not
      work.</body><html>";
      $subjectF = "subject";
      mail('email address', $subjectF, $body);
      ?>
      Form your HTML e-mail properly, as a MIME multipart message. Or get
      a library that would do it for you. phpMailer will do the trick:



      Cheers,
      NC

      Comment

      Working...