You have to configure email properly. This can be done in Administration / Configuration / Mailing. It seems that default PHP settings are not working for you, so you would have to setup an SMTP account or contact your hosting provider as to why PHP mailing is not working. You can test your settings on Administration / Tools / Test mail settings