Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

PHP Page Break in Email_body

Posted on 2014-03-25
1
Medium Priority
?
498 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
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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…
This article discusses how to create an extensible mechanism for linked drop downs.
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.
Suggested Courses

877 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