ted_chou12 Posted December 20, 2006 Share Posted December 20, 2006 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.