Cytat(erix @ 14.06.2011, 15:32:23 )

Na pewno jest skonfigurowany? Pokaż ten kawałek, wycinając hasła i login, oczywiście.
Zmieniłem dane w dołączonym przykładzie, więc musi być dobrze skonfigurowany.
require_once('class.phpmailer.php');
$mail = new PHPMailer(true); // the true param means it will throw exceptions on errors, which we need to catch
$mail->IsSMTP(); // telling the class to use SMTP
try {
$mail->Host = "smtp.poczta.onet.pl"; // SMTP server
$mail->SMTPDebug = 2; // enables SMTP debug information (for testing)
$mail->SMTPAuth = true; // enable SMTP authentication
$mail->Port = 587; // set the SMTP port for the GMAIL server
$mail->Username = "*******"; // SMTP account username
$mail->Password = "*****"; // SMTP account password
$mail->AddReplyTo('*****', 'First Last');
$mail->AddAddress('*****', 'John Doe');
$mail->SetFrom('*****', 'First Last');
$mail->AddReplyTo('*****', 'First Last');
$mail->Subject = 'PHPMailer Test Subject via mail(), advanced';
$mail->AltBody = 'To view the message, please use an HTML compatible email viewer!'; // optional - MsgHTML will create an alternate automatically
$mail->MsgHTML('ufcisuafcisduafcosid');
$mail->Send();
echo "Message Sent OK<p></p>\n"; } catch (phpmailerException $e) {
echo $e->errorMessage(); //Pretty error messages from PHPMailer } catch (Exception $e) {
echo $e->getMessage(); //Boring error messages from anything else! }