Automatically print incoming email on an iPad
Going from this comment:

It would be one email per page. The idea is to automatically print out order emails so that they can be fulfilled.

You're using the wrong product for your purposes.
There are much less complex and more reliable solutions

Printers with email addresses like HP's ePrint  The printer has it's own address and you can literally email (or forward) the message to the printer

Apple's (or any other *nix for that matter) built in mail facility.  A simple and very short batch program can be used to access and print all mail sent or fetched) from a computer.

The full blown Outlook client supports rules that allow you to print all incoming mail based on criteria you set.

Purpose built software such as Email to Print from Papercut will retrieve mail from a mail server and print it based on rules (like Outlook client)


Actually, the worst thing you can do is set this up on a mobile device like an iPad.  The moment it goes to sleep, all processing is done.  If the process is pushed the the background, the email to print processing stops.  If the device is dropped, it stops.
If you're taking orders to be fulfilled, you likely have a computer (or even a server) already for other purposes (accounting, internal website, etc.) that can handle this processing for you without trying to bodge something on a mobile device.