Mail not sent

I am getting a "Mail not sent" error on the frontend of my site. What does this error mean and how can I fix it?