Link to home
Start Free TrialLog in
Avatar of mfreeman2
mfreeman2

asked on

How do I make Microsoft Outlook respond to HTML page breaks created by ColdFusion scripts?

When I run the following script in Internet Explorer and send the results to the browser (comment out the <cfmail> and </cfmail> lines) and do a File -> Print, the page prints fine and  the page breaks work as expected. However, if I uncomment the <cfmail> and </cfmail> lines and run the script, the results go to my email as expected, but if I print the result page from my email, the page breaks do not work. How do I make the page breaks work from the email page?

<cfoutput>
    Running the test...
    <cfmail from="mfreeman@efa.org" to="mfreeman@efa.org" subject="Contact Report" type="html">
        TESTING...
        <p style="page-break-after: always;">&nbsp;</p>  <!--- page break --->
        <table width="800" border="1">
            <tr>
                <td width="30%">line one cell one</td>
                <td width="70%">line one cell two</td>
            </tr>
        </table>
        <p style="page-break-after: always;">&nbsp;</p>  <!--- page break --->
        <table width="800" border="1">
            <tr>
                <td width="30%">line two cell one</td>
                <td width="70%">line two cell two</td>
            </tr>
        </table>
        <p style="page-break-after: always;">&nbsp;</p>   <!--- page break --->
        <table width="800" border="1">
            <tr>
                <td width="30%">line three cell one</td>
                <td width="70%">line three cell two</td>
            </tr>
        </table>
        <p style="page-break-after: always;">&nbsp;</p>   <!--- page break --->
        <table width="800" border="1">
            <tr>
                <td width="30%">line four cell one</td>
                <td width="70%">line four cell two</td>
            </tr>
        </table>
    </cfmail>
    Done!
</cfoutput>








ASKER CERTIFIED SOLUTION
Avatar of Brijesh Chauhan
Brijesh Chauhan
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial