HTML5 offline mode working I think. Not sure how to fully test this though. I don't know how to put the server offline for a few secs, then send an email and then online again a few seconds later.