I want to ask you, how I must setup my PHP.INI file, to send e-mail from my Web Site if my SMTP server requires authentication. Otherwise, I want to know if exits some kind of "public" SMTP sever that I could use.
I think you don't need to adjust your php.ini for that, just use the right params for sending the mails.
Isn't somthing like this is what you need? (got it from: http://nl3.php.net/mail) Or did i get your question wrong?
<? include("Mail.php");
$recipients = "mail_to@xxxxxxxxxxx";
$headers["From"] = "mail_from@xxxxxxxxxxx"; $headers["To"] = "mail_to@xxxxxxxxxxx"; $headers["Subject"] = "Test message";
$body = "TEST MESSAGE!!!";
$params["host"] = "smtp.server"; $params["port"] = "25"; $params["auth"] = true; $params["username"] = "user"; $params["password"] = "password";
// Create the mail object using the Mail::factory method $mail_object =& Mail::factory("smtp", $params);
$mail_object->send($recipients, $headers, $body); ?>
laters,
Fedde
~= The sum of the intelligence on the planet is a constant; the population is growing. =~
-- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php