Jump to content

php auto mailing system requirements


ted_chou12

Recommended Posts

I tried almost all the mailing scripts I find in Google and none of them works, that is, the script doesn't send the email to me at all, I dont know why, some simple scripts like this:
[code]
<?php
$to = "[email protected]";
$subject = "Hi!";
$body = "Hi,\n\nHow are you?";
if (mail($to, $subject, $body)) {
  echo("<p>Message successfully sent!</p>");
} else {
  echo("<p>Message delivery failed...</p>");
}
?>
[/code]
and I replaced to with my own email address, but it doesnt send to me at all, what I did is just simply paste this in a php page. So please do tell me if I have to do anything else more than simply cut and paste this.
Thanks Ted.
Link to comment
https://forums.phpfreaks.com/topic/31377-php-auto-mailing-system-requirements/
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.