i have installed php mailer using composer PHPMailer/PHPMailer and i got PHPMailer-Master directory but how and what files can i include to my mail file i.e sendEmail.php.
Here is my sendEmail.php-
include 'What is include paht?'
$mail = new PHPMailer;
$mail->setFrom($email, $name);
$mail->addAddress('dev5.veomit@gmail.com', 'Admin');
$mail->Subject = 'First PHPMailer Message';
$mail->Body = 'Hi! This is my first e-mail sent through PHPMailer.';
if(!$mail->send()) {
header("Location: https://m-expressions.com/test/voy/");
}else {
echo 'Mailer error: ' . $mail->ErrorInfo;
}
Please help me to complete this code. thanks in advance.