I've been there, quite recently as well. I was so close, then my phone rang (which it hadn't done in weeks)!and that call saved my life. I was total wreck emotions all over the place, couldn't see a future or a need to keep going.
Now, looking back at that time, I now realise just how close I came. I'm not the person I used to be yet, but I'm trying hard, I try and get something positive out of every day, and that is my goal.
You must set your self a goal, no matter how small, and go for it, then move the bar up a notch for the next day, you will find it a challenge but it's with it.