I would think even if your host can't get the mail function in PHP to work, they probably have a functioning SMTP server you can use, in which case this class should do the trick for you: http://www.phpclasses.org/browse.html/package/264.html
Let me know if you want a hosting provider that provides PHP working with the mail function! :) HTH, Peter Janett New Media One Web Services ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ New Upgrades Are Now Live!!! Windows 2000 accounts - Cold Fusion 5.0 and Imail 7.1 Sun Solaris (UNIX) accounts - PHP 4.1.2, mod_perl/1.25, Stronghold/3.0 (Apache/1.3.22), MySQL 3.23.43 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ PostgreSQL coming soon! http://www.newmediaone.net [EMAIL PROTECTED] (303)828-9882 ----- Original Message ----- From: "Miguel Cruz" <[EMAIL PROTECTED]> To: "John Hughes" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Thursday, April 25, 2002 1:06 AM Subject: Re: [PHP] alternatives to mail() > Just to flesh it out a little more.... > > Split the address up and get the domain name (the part after the @). > > Do a DNS lookup on that domain name for an MX record. > > If that fails, look for an A record. > > If that fails, give up. > > If you got an address, open a socket connection to that address, port 25. > > Wait for a line beginning with 2 > > Send HELO\n > > Wait for a line beginning with 250 > > Send MAIL FROM:<[EMAIL PROTECTED]>\n > > Wait for a line beginning with 250 > > Send RCPT TO:<[EMAIL PROTECTED]>\n > > Wait for a line beginning with 250 > > Send DATA\n > > Wait for a line beginning with 3 > > Send your entire message, including headers. > > Send a blank line containing only a period followed by \n > > Wait for a line beginning with 250 > > Send QUIT\n > > Close connection. > > miguel > > On Wed, 24 Apr 2002, Evan Nemerson wrote: > > php.net/fsockopen > > php.net/sockets > > > > Have fun ; > > > > > > > > On Wednesday 24 April 2002 22:14 pm, you wrote: > > > The commercial server where my pages are hosted is having trouble > > > with the lastest version of PHP and as a result the mail() function > > > is not working. E-mailing from PHP is critical for my postcard and > > > other functions on my site. (I might as well shut four of my sites > > > without e-mail.) > > > > > > Is there a fall-back option from PHP to send mail when the mail() > > > function is not working? > > > > > > John Hughes > > > > > > __________________________________________________ > > > Do You Yahoo!? > > > Yahoo! Games - play chess, backgammon, pool and more > > > http://games.yahoo.com/ > > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php