if you would search this forum you could find the answer to your questions - it`s a xampp problem
If you want to use the email function start the "XAMPP Control Panel" then start "Mercury" then press the "Admin" button:
Then "Configuration" after that go to "MercuryS SMTP Server":
and to "Connection Control" where the "Do not permit SMTP relaying of non-local mail" is
MARKED
You must
UNMARK that !