That code should have no effect on the email being sent.
Do you still have the session dump code in the main file? The session will contain details on the whether passing the email to the smtp server was successful, does that report success?
It is posible that the SMTP server is backed up little, and the email may be on the way.
on some hosts, I have emails take up to a day to be delivered on occasion.