Menu

email formatting

Help
2005-04-02
2013-06-03
  • Jon Truelson

    Jon Truelson - 2005-04-02

    Works like a charm!
    The only issue is that when email submission is received, there are no line breaks between fields (one jumbled paragraph).
    Early on in testing, received email showed each field entry on a seperate line.  Not sure what I did to break it.  How can I fix this?

     
    • Jon Truelson

      Jon Truelson - 2005-04-03

      Adding line breaks (e.g:
      $message=
      Name: ".$Name." \n)
      seems to heve fixed it.

       
      • Jerome

        Jerome - 2007-03-03

        I tried the above in the process.php file and my emails are still not coming through with line breaks.

        I changed this line:  $message="Name: ".$Name."

        to this:  $message="Name: ".$Name."\n

        It is not working.

        What am I doing wrong?

         
        • TNTEverett

          TNTEverett - 2007-03-03

          This is code from a working form.  I added extra line breaks and the email is changed accordingly.  This also depends on how your email is setup (read as text or html, etc..). 

          $message="FirstName: ".$FirstName."\n\n\n
          LastName: ".$LastName."
          Email: ".$Email."
          ";
          $message = stripslashes($message);
          mail("

           

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.