> My free-web-hosting (www.f2s.com) does not allow PHP to send emails...
I've
> tried everything... the mail() function, my alternate function which calls
> popen("/usr/lib/sendmail -t") and even a script.cgi with '#!/usr/bin/php'
> and all that stuff...
>
> the mail simply won't go an mail() always returns false...
> I'm guessing there's no mail sending in this server...
>
> so what do I do?

If you know an SMTP server that will allow you to relay mail, you can use
fsockopen and write the mail directly to the port 25 on the relay server. I
haven't tried it with PHP, but I've done something similar with tcl before.
You might try finding something like this already written.

-- Joe


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to