Frage

I am try to create PHPMailer with this:

<?php

include('class.phpmailer.php');

try {
    echo "Test";
    $mail = new PHPMailer();

    echo "Test2";
} catch (Exception $e) {
    echo 'Caught exception: ',  $e->getMessage(), "\n";
}
?>

And only the first Test is print. Any idea what can be the problem?

War es hilfreich?

Lösung

Turn errors on. Are you sure the path is correct?

<?php    
error_reporting(E_ALL); 
ini_set('display_errors', '1');

Should give you a good place to start.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top