NYCPHP Meetup

NYPHP.org

[nycphp-talk] mail() inconsistency/problem

Jon Baer jonbaer at jonbaer.com
Thu Mar 30 00:26:42 EST 2006


Might want to try Zend_Mail on PHP5 ...

http://framework.zend.com/manual/en/zend.mail.sending.html

Also look to see if your php.ini is a little funky as per this bug ...

http://bugs.php.net/bug.php?id=29276

- Jon

On Mar 29, 2006, at 10:26 PM, edward potter wrote:

> jump on the log files: mail, server, etc.  if the mail did not go out,
> somewhere that was noted, and probably the reason why. log files are
> your friends.
>
> -ed potter :-)
>
> On 3/29/06, Michael Southwell <michael.southwell at nyphp.org> wrote:
>> 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
>>
>> _______________________________________________
>> New York PHP Community Talk Mailing List
>> http://lists.nyphp.org/mailman/listinfo/talk
>> New York PHP Conference and Expo 2006
>> http://www.nyphpcon.com
>> Show Your Participation in New York PHP
>> http://www.nyphp.org/show_participation.php
>>
> _______________________________________________
> New York PHP Community Talk Mailing List
> http://lists.nyphp.org/mailman/listinfo/talk
> New York PHP Conference and Expo 2006
> http://www.nyphpcon.com
> Show Your Participation in New York PHP
> http://www.nyphp.org/show_participation.php
>




More information about the talk mailing list