Copy link to clipboard
Copied
I'm using Phpmailer and these two lines must be the first ones in my PHP script:
use PHPMailer\PHPMailer\PHPMailer;
use PHPMailer\PHPMailer\Exception;
Dreamweaver highlights these lines in red.
I'm using Dreamweaver version 11.0
Many thanks
Are you working with a .php file? This looks OK to me in Dreamweaver 2019.
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Untitled Document</title>
</head>
<body>
<?php
use PHPMailer\PHPMailer\PHPMailer;
use PHPMailer\PHPMailer\Exception;
?>
</body>
</html>
Copy link to clipboard
Copied
Are you working with a .php file? This looks OK to me in Dreamweaver 2019.
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Untitled Document</title>
</head>
<body>
<?php
use PHPMailer\PHPMailer\PHPMailer;
use PHPMailer\PHPMailer\Exception;
?>
</body>
</html>
Copy link to clipboard
Copied
yes of course, it's a .php file
it must be the version then, thanks