Solved

PHP Page Break in Email_body

Posted on 2014-03-25
1
492 Views
Last Modified: 2014-03-25
I have the following code that sends a .txt file and email, but I would like to add a page break or something (open to suggestions) that would make the application signatures not move dependent on how much data the user enters.  Line 7 is where I would like it and what I have there is not working


email_body .= "------ ADDITIONAL INFORMATION ------" . "\n" ;
	$email_body .= "Have you ever been a party to an eviction?: " . stripslashes($_POST[eviction]) . "\n" ;
	$email_body .= "Have you ever filed Bankruptcy?: " . stripslashes($_POST[bankruptcy]) . "\n" ;
	$email_body .= "Have you ever been convicted of a Crime?: " . stripslashes($_POST[convicted]) . "\n" ;
	$email_body .= "Please provide the best phone number where we can reach you: " . stripslashes($_POST[bestphone]) . "\n" ;
	$email_body .= "Please provide an email address where we can contact you: " . stripslashes($_POST[emailaddress]) . "\n\n\n" ;
        $email_body .= ."{page-break-after: always}". ;
        $email_body .= "Applicant 1 Signature:____________________________ \n\n\n" ;
        $email_body .= "Applicant 2 Signature:____________________________ \n" ;

Open in new window

0
Comment
Question by:rcowen00
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 35

Accepted Solution

by:
gr8gonzo earned 500 total points
ID: 39953761
You can't really do that with plain text emails. To be honest, the best way to approach this would be to generate a PDF and send it, since PDF docs support actual page breaks.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
PHP Web Development 6 71
How to get chosen background-color on every line? 10 44
XML loaded in a form with dropdown 6 57
phpmyadmin memory error 55 96
This article discusses four methods for overlaying images in a container on a web page
This article discusses how to create an extensible mechanism for linked drop downs.
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question