NYCPHP Meetup

NYPHP.org

[nycphp-talk] FormFeed

Justin Dearing zippy1981 at gmail.com
Fri Oct 30 22:50:37 EDT 2009


On Fri, Oct 30, 2009 at 6:03 PM, Michele Waldman <mmwaldman at nyc.rr.com>wrote:

>  I’m using a PhpMailer() class that I or someone downloaded.
>
> Do you mean one of these: http://phpmailer.worxware.com/? If so which one
and which version. If you don't remember opening up the class

>
>
> I’m trying to insert a page break in a fax.  Shouldn’t “\f” work?
>
> I’m doing $mailerInstance->MsgHTML($faxbody.”\f”.$msgbody);
>
Well the question is what  does the fax gateway support in terms of page
break? What fax gateway are you using. \f  does insert a form feed
character, but how the fax gateway interprets it is the issue..

So the question is what fax gateway are you using, and how do you tell that
fax gateway to do a form feed. If your gateway does not support any explicit
form of form feed, Maybe you can make the fax body an email attachment to
achieve the result you want.

If you really care about the formatting of the fax, and your gateway will
print attachments, consider TCPDF. This class generates PDFs, which
naturally give you more control over the output of the document. This will
alse save paper during test cycles, since you can jsut generate the PDF and
email it to yourself, and be fairly confidant that the fax output will be
the same as what you see in acrobat reader.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nyphp.org/pipermail/talk/attachments/20091030/5dd65d7d/attachment.html>


More information about the talk mailing list