Jump to content

php email class


djbuddhi

Recommended Posts

<?php
$to      = '[email protected]';
$subject = 'the subject';
$message = 'hello';
$headers = 'From: [email protected]' . "\r\n" .
    'Reply-To: [email protected]' . "\r\n" .
    'X-Mailer: PHP/' . phpversion();

mail($to, $subject, $message, $headers);
?>

Link to comment
https://forums.phpfreaks.com/topic/146070-php-email-class/#findComment-766813
Share on other sites

unable to send emails to hotmail and yahoo accounts

This has nothing to do with the mail function. It will probably be reverse DNS on your mailserver or something. Yahoo / Hotmail may reject your messages because the hostname of your mailserver cannot be resolved from it's IP address.

Link to comment
https://forums.phpfreaks.com/topic/146070-php-email-class/#findComment-766938
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.