Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

PHP Page Break in Email_body

Posted on 2014-03-25
1
Medium Priority
?
495 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 2000 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: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

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

Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this. Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it i…
Build an array called $myWeek which will hold the array elements Today, Yesterday and then builds up the rest of the week by the name of the day going back 1 week.   (CODE) (CODE) Then you just need to pass your date to the function. If i…
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…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

705 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