you should set the servers session time settings out to allow you more time to create the email message before the session ends.
See the following thread for details on the session time out settings of PHP:
12812.htm
You may need to contact your host to have the session time out extended.