First, give yourself a mental hug. You've earned it. Now, try to console yourself with the fact that your situation is not unique or even rare.
Rejection is merely a part of the publication process.
Even if we tell you that every month, even if you know it deep in your heart, it is sometimes very difficult to pull yourself back up when you feel you've read the last rejection notice that you'll ever want to read. Sometimes it's helpful to understand why your work was rejected. An untitled poem is like a beau without a name. If so, fabulous. Review your writing and make sure you're as satisfied as you can be.