thanks Camelot
i've been asking this question in different forums for quite a while and yours is the first answer.
unlike the local mysql server, i have never had to start the local sendmail server. it was always running. all i had to do was configure the sendmail path in the php.ini file. here is what the logs used to say when i sent a simple mail message using the php mail() function when everything was working:
Jan 15 11:13:17 ted-clarkes-imac postfix/master[2933]: daemon started -- version 2.4.3, configuration /etc/postfix
Jan 15 11:13:17 ted-clarkes-imac postfix/pickup[2934]: A7A7613F54E: uid=70 from=<_www>
Jan 15 11:13:17 ted-clarkes-imac postfix/cleanup[2936]: A7A7613F54E: message-id=<20090115181317.A7A7613F54E@ted-clarkes-imac.local>
Jan 15 11:13:17 ted-clarkes-imac postfix/qmgr[2935]: A7A7613F54E: from=<_www@ted-clarkes-imac.local>, size=503, nrcpt=1 (queue active)
Jan 15 11:13:52 ted-clarkes-imac postfix/smtp[2938]: A7A7613F54E: to=<clarkee@telus.net>, relay=mx.svc.telus.net[204.209.205.52]:25, delay=35, delays=0.03/0/33/2, dsn=2.0.0, status=sent (250 Ok: queued as AE302737340541BF)
Jan 15 11:13:52 ted-clarkes-imac postfix/qmgr[2935]: A7A7613F54E: removed
Jan 15 11:14:17 ted-clarkes-imac postfix/master[2933]: master exit time has arrived
but here is what they say now when i run exactly the same script:
Feb 16 10:00:28 ted-clarkes-imac postfix/master[279]: daemon started -- version 2.4.3, configuration /etc/postfix
Feb 16 10:01:28 ted-clarkes-imac postfix/master[279]: master exit time has arrived
i sent the mail message to a remote domain. i don't know how to determine the failure state. i don't get an error message from php.
what say Camelot?