NYCPHP Meetup

NYPHP.org

[nycphp-talk] mail() inconsistency/problem

Michael Southwell michael.southwell at nyphp.org
Wed Mar 29 20:45:06 EST 2006


I have this simple 3-line test script (which actually says dneba.com 
rather than example.com ;-):

<?php
   if ( mail( 'southwell at example.com', 'simple testing', 'no 
variables here' ) === FALSE ) echo 'There was an error accepting your 
review.  Please try again later.';
   else echo 'Your mail was sent.';

Running it from domain #1 (and also #3, 4, and 5) works 
perfectly.  Running it from domain #2 gives a confirmation message, 
but the mail never arrives.

Aha, #2 is running php 5.1.2 and the others are still 4.  But the php 
docs don't tell me anything about why this extremely simple example 
will work in 4 and not 5.  Any ideas?

Michael Southwell, Vice President for Education
New York PHP
http://www.nyphp.com/training - In-depth PHP Training Courses  




More information about the talk mailing list