phpmailer FEHLER: Mail-Funktion konnte nicht instanziiert werden

Ich verwende localhost WAMP Server (Windows) für das Webhosting. Ich erhalte die folgende Fehlermeldung.

phpmailer FEHLER: Mail-Funktion konnte nicht instanziiert werden.

Ich habe viele Lösungen ausprobiert, aber nichts hat bei mir funktioniert.

PHP Mailing Skript
    $mailer = new PHPMailer();
    $mailer->IsMAIL();
    $mailer->CharSet = 'utf-8';
    $mailer->AddAddress($formvars['email'],$formvars['name']);
    $mailer->Subject = "Your registration with ".$this->sitename;
    $mailer->From = $this->GetFromAddress();        
    $confirmcode = $formvars['confirmcode'];
    $confirm_url = $this->GetAbsoluteURLFolder().'/confirmreg.php?code='.$confirmcode;
    $mailer->Body ="Hello ".$formvars['name']."\r\n\r\n".
    "Thanks for your registration with ".$this->sitename."\r\n".
    "Please click the link below to confirm your registration.\r\n".
    "$confirm_url\r\n".
    "\r\n".
    "Regards,\r\n".
    "Webmaster\r\n".
    $this->sitename;

    if(!$mailer->Send())
    {
        $this->HandleError("Failed sending registration confirmation email.".$mailer->ErrorInfo);
        //echo "Mailer Error: " . $mailer->ErrorInfo;
        return false;
    }
    return true;

Wie kann ich diesen Fehler diagnostizieren?

Antworten auf die Frage(4)

Ihre Antwort auf die Frage