The order would not be lost, it would still be in the database, but the email may be sent twice for the same order. The ID that is inserted into the database should be stored in a session variable, so you could use that to setup the database query for a recordset to get the record that you need.