PHP Mail Script Question

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • trvmcnevan
    New Member
    • Jun 2007
    • 8

    PHP Mail Script Question

    Hey All,
    I've been fooling around updating some code I wrote for a website a while ago and part of it involves an appplication.
    So, the form submits to a php file in which I send off the data in an email. I'm trying to format it a bit with html, but have one small problem:
    Spaces and exclamation points are placed in the middle of the text. Here's an example of what's happening:
    [PHP]$emailBody.="<t r><td border=\"0\">Ho mePhone:</td><td border=\"0\"><b >";
    $emailBody.="(" .$aHomeArea.") ".$aHomeT."-".$aHomeF;
    $emailBody.="</b></td></tr>";[/PHP]

    That code comes out:
    HomePho! ne: 555-5555

    Content-type is set as text/html, charset is utf-8, and encoding is base64.
    Any suggestions as to whats going on here?
  • trvmcnevan
    New Member
    • Jun 2007
    • 8

    #2
    Disregard my question. I was simply incorrectly encoding and decoding the base64.

    Comment

    • Markus
      Recognized Expert Expert
      • Jun 2007
      • 6092

      #3
      Originally posted by trvmcnevan
      Disregard my question. I was simply incorrectly encoding and decoding the base64.
      Glad you got it working!

      Comment

      Working...