testing on your local system is not recommended. many testing server packages don't include an SMTP server, the only one I am aware of that does include an SMTP server is XAMPP, and you need to make sure that it is configured properly in order to use it.
You should test sending the email using your live server instead.