Od pewnego czasu mam problem z wysłaniem meila za pomocą PMPMailer'a, proszę o pomoc.
Kod
require('includes/PHPMailer/class.phpmailer.php');
include('modules/'.$modul.'/languages/'.$_SESSION['language'].'/register_mail.php');
$mail = new PHPMailer();
$mail -> Host = "poczta.interia.pl";
$mail -> IsSMTP();
$mail -> SMTPAuth = true;
$mail -> Username = "Mój_login_do_poczty";
$mail -> Password = "Moje_hasło_do_poczty";
$mail -> CharSet = "".$Config['Iso']."";
$mail -> From = "".$Config['Email']."";
$mail -> FromName = "".$Config['Name']."";
$mail -> AddAddress($_POST['email']);
$mail -> IsHTML(true);
$mail -> SetLanguage("pl", "includes/PHPmailer/language/");
$mail -> Subject = $GiboLanguage['RegisterTitle'];
$mail -> Body = $GiboLanguage['RegisterContent'];
$mail -> WordWrap = 50;
if(!@$mail->Send())
{
echo "Nie wysłano wiadomości";
}
else
{
echo "Wiadomość wysłana";
}
include('modules/'.$modul.'/languages/'.$_SESSION['language'].'/register_mail.php');
$mail = new PHPMailer();
$mail -> Host = "poczta.interia.pl";
$mail -> IsSMTP();
$mail -> SMTPAuth = true;
$mail -> Username = "Mój_login_do_poczty";
$mail -> Password = "Moje_hasło_do_poczty";
$mail -> CharSet = "".$Config['Iso']."";
$mail -> From = "".$Config['Email']."";
$mail -> FromName = "".$Config['Name']."";
$mail -> AddAddress($_POST['email']);
$mail -> IsHTML(true);
$mail -> SetLanguage("pl", "includes/PHPmailer/language/");
$mail -> Subject = $GiboLanguage['RegisterTitle'];
$mail -> Body = $GiboLanguage['RegisterContent'];
$mail -> WordWrap = 50;
if(!@$mail->Send())
{
echo "Nie wysłano wiadomości";
}
else
{
echo "Wiadomość wysłana";
}
Z góry dziękuję.