Web Analytics Made Easy -
StatCounter Mail Function - CodingForum

Announcement

Collapse
No announcement yet.

Mail Function

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Mail Function

    Can anyone help me with this mail function. It is HTML format. It works fine in most cases. However some emails before the main body (message) have, the message ID tag. So instead of it being in the header of the email. It is in the actual message.

    Message-Id: <[email protected] bla> Date: Tue, 3 Oct 2006 23:13:26 +1000 (EST)

    HTML HTML HTML HTML HTML

    ----- This is the code -----

    $headers = "From:blabla <[email protected]>\r\n";
    $headers .= "Reply-To: blabla <[email protected]>\r\n";
    $headers .= "Content-type: text/html\r\n";

    $subject = "blabla";
    $bodymsg = mysql_result($result1,0,"bodymsg");
    $to = "[email protected]";

    mail($to, $subject, $bodymsg, $headers);
    ----------------------------


    Any help would be greatly appreciated.

  • #2
    The code you show indicates the unwanted text is actually stored in your database because you are simply using the result of a query as the email message. So the problem is likely the code that inserts/updates your database.

    Comment


    • #3
      The message that is appearing in the body. of the html email is

      Message-Id: <[email protected] bla> Date: Tue, 3 Oct 2006 23:13:26 +1000 (EST)


      Which is not stored in the databse.

      Comment

      Working...
      X