Menu

$headers

Help
szac
2004-03-15
2004-03-15
  • szac

    szac - 2004-03-15

    Hello, the email message fails to arrive after adding the following header code to process.php:

    $message = stripslashes($message);
    added--> $headers = "MIME-Version: 1.0\r\n";
    added--> $headers .= "Content-type: text/html; charset=iso-8859-1\r\n";

    mail("my@email.com","Form Submitted at your website",$message,"From: phpFormGenerator",$headers);

    This was an attempt to remove the HTML tags that are showing up in the email message.  A couple of threads suggested that this is the fix.  I'm sure that I am doing something wrong.

     
    • szac

      szac - 2004-03-15

      To clarify: What I am asking is in what file are the header of the  email defined?  Thanks in advance. and thanks for the great script!

      PS  Although<br/> the mail comes &nsp's &nsp'sthrough<br/><br/>and the script works<br/>great, it's still somewhat<br/>tedious to &nsp'sift through a bunch of <br/>'s and &nsp's

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.