Evernote, the popular note-taking service, was once so short on cash and possibilities that it was facing the very real possibility of shutting down.

After the market collapsed and a promising round of financing fell through, Phil Libin the founder of Evernote was determined to wake up and ‘do the adult thing’ the next day: wind down the company before it could no longer make payroll.

Just before going to sleep a Swedish user sent Libin an email praising the service, and offering to invest in the company if they needed money. Libin naturally said yes.

$500,000 later the company was recapitalized and able to get back on financial track. Of all the last-minute bits of ‘saving grace,’ this one has to take the cake. Watch the clip below for the full, amazing story: