@user1493581567 - please, please don't beat yourself up about this. I struggled with breastfeeding all three of my dses, and I beat myself up about it - I called myself a failure for years. Ds2 even ended up in hospital, with the staff saying things like 'failure to thrive' because he had lost so much from his birthweight, and not regained it at 6 weeks old - which was terrifying.
All three dses ended up being formula fed, and all three of them have grown up to be strong, healthy, intelligent young men (they are 20, 22 and nearly 24). Two of them play competitive sports, and are doing well at university, and the other has a law degree and a good job. I can see absolutely NO ill effects from them having been formula fed.
Breastfeeding is great, but it is just one of the many great things you can do for your child - giving them an interesting, healthy diet when you start weaning, encouraging them to play and be imaginative, laughing with them, talking to them, making sure they get enough sleep, helping with homework, listening to their woes - the list goes on and on.
@InfinityPlusOne is right about the dark paths - when I had my sons, I had an undiagnosed tendency to depression, but developed post natal depression after each of them was born - and I do think that the pressure I put on myself to breastfeed, and the guilt I felt when I felt I had failed, contributed to that.
I had forgotten the advice from my all-time favourite childcare author - Libby Purves. She wrote a book called How Not To Be a Perfect Mother - the gist of which is that we don't have to be perfect all the time - as she says, even a perfect Madonna (the religious sort, not the pop icon) needs an hour off with a drink and her feet up. Obviously we all want the best for our babies, but there is a balance to be made between doing our best, and striving so hard for absolute perfection all the time that we put too much pressure on ourselves.
Congratulations on the birth of your wonderful son. Please believe me when I say that you are absolutely the best mum you can be - and enjoy the lovely baby snuggles. There are so many wonderful things waiting for you as he grows up, and you and he both deserve every happiness.