<?php require_once 'Mail.php'; $params['host'] = 'poczta.o2.pl'; $params['port'] = 25; $params['auth'] = true; $params['username'] = 'login'; $params['password'] = 'haslo'; $headers['Subject'] = 'Email testowy'; $headers['From'] = 'login@o2.pl'; $headers['Content-type'] = 'text/html; charset=charset=UTF-8'; $body = 'Pozdrawiam!!'; $recipients = 'login2@o2.pl'; if (PEAR::isError($mail)) { } else { $error = $mail->send($recipients, $headers, $body); if (PEAR::isError($error)) { } else { } } ?>
Dostaje odpowiedź:
2. authentication failure [SMTP: SMTP server does no support authentication (code: 250, response: 8.mail-out.ovh.net PIPELINING STARTTLS 8BITMIME SIZE 0)]
Proszę o pomoc...