<?php
use PHPMailer\PHPMailer\PHPMailer;
use PHPMailer\PHPMailer\Exception;
require 'PHPMailer/src/Exception.php';
require 'PHPMailer/src/PHPMailer.php';
require 'PHPMailer/src/SMTP.php';
$mail = new PHPMailer(true);
$mail->CharSet = 'UTF-8';
$mail->IsHTML(true);
$mail->setFrom('em@em.ru');
$mail->addAddress('elena_***@yandex.ru');
$mail->Subject = 'Привет!';
$mail->Body = '<p>test</p>';
$mail->send();
?>