Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> Problem z wysyłaniem meila, PHPMailer
Gibcio2009
post
Post #1





Grupa: Zarejestrowani
Postów: 8
Pomógł: 0
Dołączył: 22.07.2009

Ostrzeżenie: (0%)
-----


Witam !

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";
}


Z góry dziękuję.
Go to the top of the page
+Quote Post
Agape
post
Post #2





Grupa: Zarejestrowani
Postów: 384
Pomógł: 13
Dołączył: 16.06.2006

Ostrzeżenie: (0%)
-----


Ale wyskakują jakieś błędy czy nie?
spróbuj wpisać
  1. echo $mail->ErrorInfo;


Ten post edytował Agape 22.06.2010, 10:29:36
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 22.08.2025 - 22:20