Hi everyone, I am having a problem sending an email to the following domains:
Is there something wrong with my code? Thank you so much.
- @yahoo.com,
- @hotmail.com, and
- @msn.com
Is there something wrong with my code? Thank you so much.
Code:
<?php
$to = 'someone@yahoo.com';
$subject = 'Sample Subject';
$message = 'Hi. This is a sample message.';
$headers = 'From: webmaster@royyuuki.elementfx.com' . "\r\n" .
'Reply-To: no-reply@royyuuki.elementfx.com' . "\r\n" .
'X-Mailer: PHP/' . phpversion();
mail($to, $subject, $message, $headers);
echo("Message sent!");
?>