mam problem z wysyłką maili. Jak już się uporałem z samą wysyłka to teraz wysyłam do każdego 2 takie same maile

Metoda do wysyłania:
function send_mail($email,$message,$subject) { require_once('mailer/class.phpmailer.php'); //dodanie klasy phpmailer require_once('mailer/class.smtp.php'); //dodanie klasy smtp $mail = new PHPMailer(TRUE); try { /* SMTP parameters. */ // kodowanie $mail->CharSet = "UTF-8"; // wiadomość html $mail->IsHTML(true); /* Tells PHPMailer to use SMTP. */ $mail->isSMTP(); /* SMTP server address. */ $mail->Host = 'poczta.o2.pl'; /* Use SMTP authentication. */ $mail->SMTPAuth = TRUE; /* Set the encryption system. */ $mail->SMTPSecure = 'tls'; /* SMTP authentication username. */ $mail->Username = 'username'; /* SMTP authentication password. */ $mail->Password = '********'; /* Set the SMTP port. */ $mail->Port = 587; /* Finally send the mail. */ $mail->setFrom('mail', 'Administrator'); $mail->addAddress($email); $mail->Subject = $subject; $mail->Body = $message; $mail->send(); if(!$mail->Send()) { $_SESSION['info'] = "<div class='alarm'><strong>Ups, coś poszło nie tak!</strong> Wiadomość nie została wysłana. 'Mailer error: ' . $mail->ErrorInfo </div></div>"; } else { $_SESSION['info'] = "<div class='alarm'><strong>Powodzenie!</strong></div>"; } } catch (Exception $e) { } catch (Exception $e) { } }
Wywołanie funkcji:
$email = 'emaill'; $message = 'Wiadomość'; $subject = 'Temat; $wyslijMaila->send_mail($email, $message, $subject); }