Menu
How to use mail() to send email to free account email/any email for hotmail, yahoo email account etc?
Here my code
[code=php]
<?php
// Your email address
$email = “[email protected]”;
// The subject
$subject = “Enter your subject here”;
// The message
$message = “Enter your message here”;
mail($email, $subject, $message, “From: $email”);
echo “The email has been sent.”;
?>
When sent, got error message “Warning: mail() [function.mail]: SMTP server response: 550 5.7.1 Unable to relay for [email][email protected]
How to solve that problem so that the mail() actually can sent mail?