[nycphp-talk] need help with debugging mail()
jon baer
jonbaer at jonbaer.net
Thu Nov 20 18:15:47 EST 2003
normally when working with mail on a local basis or @ least up to the
gateway its very convienent to do protocol analysis yourself using ethereal
or ngrep.
Where does phpinfo() tell you your sendmail path + setting is on both boxes?
i accidentally copied a php.ini over to a box once w/ bad settings.
- jon
----- Original Message -----
From: "Michael Southwell" <southwell at dneba.com>
To: <talk at lists.nyphp.org>
Sent: Thursday, November 20, 2003 4:51 PM
Subject: [nycphp-talk] need help with debugging mail()
> I am moving a site from one server to another one (the new one is in nyc
> and has a 2-letter extension ;-). The contact form on the old site is
> working perfectly, but identical code on the new one isn't. Phpinfo tells
> me that sendmail is there and presumably working. Docs say that mail()
> returns TRUE or FALSE so I tried this code:
> ----------------
> if (mail($to,$subject,$message,$from)==FALSE) do something
> else do something else
> --------------
> which always does something else so mail seems to be returning TRUE but
the
> message never arrives. How do I do a better job of debugging what's
happening?
>
>
> Michael G. Southwell =================================
> DNEBA Enterprises
> 81 South Road
> Bloomingdale, NJ 07403-1419
> 973/492-7873 (voice and fax)
> southwell at dneba.com
> http://www.dneba.com
> ======================================================
>
> _______________________________________________
> talk mailing list
> talk at lists.nyphp.org
> http://lists.nyphp.org/mailman/listinfo/talk
>
More information about the talk
mailing list