PHP MAMP email stopped sending

Posted by Kyle Parisi on Server Fault See other posts from Server Fault or by Kyle Parisi
Published on 2011-01-18T02:50:38Z Indexed on 2011/01/18 2:55 UTC
Read the original article Hit count: 230

Filed under:
|
|

I'm working on a simple registration email. I'm using MAMP (free) with PHP. I was getting emails from my code before. Now I get nothing. Here is a test code that doesn't send the email either.

<?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>");
  }
 ?>

What might have changed? I read that perhaps my ISP blocked sending emails? How do I find out?

© Server Fault or respective owner

Related posts about php

Related posts about email