Solved

PHP Page Break in Email_body

Posted on 2014-03-25
1
485 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 34

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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

I imagine that there are some, like me, who require a way of getting currency exchange rates for implementation in web project from time to time, so I thought I would share a solution that I have developed for this purpose. It turns out that Yaho…
Developers of all skill levels should learn to use current best practices when developing websites. However many developers, new and old, fall into the trap of using deprecated features because this is what so many tutorials and books tell them to u…
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 count occurrences of each item in an array.

759 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now