a friend yesterday showed this to me and asked me how to use the mail function cause he couldnt make it work and i tried it now and i still couldnt make it work...what am i doing wrong in this code....
$to = dummy@yahoo.com';
$subject = 'the subject';
$message = 'hello';
$headers = 'From: webmaster@example.com' . "\r\n" .
'Reply-To: webmaster@example.com' . "\r\n" .
'X-Mailer: PHP/' . phpversion();
mail($to, $subject, $message, $headers);
and this is the error :
Warning: mail() [function.mail]: SMTP server response: 553 We do not relay non-local mail, sorry. in D:\education\xampp\htdocs\trialArea\mailFunction.php on line 9