Hallo ich will mit sendgrid eine email schicken bekomme diese fehlermeldung
[Mon Oct 23 05:02:42.751627 2023] [php:warn] [pid 160957] [client 79.250.178.209:54722] PHP Warning: require(/root/vendor/autoload.php): Failed to open stream: Permission denied in /var/www/Cavemanodyssey/backend/RegisterUser.php on line 19
[Mon Oct 23 05:02:42.751661 2023] [php:error] [pid 160957] [client 79.250.178.209:54722] PHP Fatal error: Uncaught Error: Failed opening required '/root/vendor/autoload.php' (include_path='.:/usr/share/php') in /var/www/Cavemanodyssey/backend/RegisterUser.php:19\nStack trace:\n#0 {main}\n thrown in /var/www/Cavemanodyssey/backend/RegisterUser.php on line 19
das ist mein email code
$email = new Mail();
$email->setFrom("dieemail", "Cavemanodyssey");
$email->setSubject("I'm replacing the subject tag");
$email->addTo($email);
$email->setTemplateId("d-636d3bcfa7b741bf811d71d7fc78e2fa");
$sendgrid = new \SendGrid(getenv('meinapikey'));
$response = $sendgrid->send($email);