Edit file File name : mail.php Content :<?php use PHPMailer\PHPMailer\PHPMailer; use PHPMailer\PHPMailer\Exception; require 'PHPMailer/src/Exception.php'; require 'PHPMailer/src/PHPMailer.php'; require 'PHPMailer/src/SMTP.php'; $name = $_POST['name']; $email = $_POST['email']; $contactPerson = $_POST['contact-person']; $phone = $_POST['phone']; //$team = $_POST['team']; //$my_info = $_POST['my_info']; //Create a new PHPMailer instance $mail = new PHPMailer; // Set PHPMailer to use the sendmail transport $mail->isSendmail(); //Set who the message is to be sent from $mail->setFrom($email); //Set an alternative reply-to address $mail->addReplyTo($email); //Set who the message is to be sent to $mail->addAddress('omarmaduk@gmail.com'); //Set the subject line $mail->Subject = 'Cotech Contact Us'; $mail->Body = ' Firmen Name: '.$name.' Kontaktperson: '.$contactPerson.' E-Mail: '.$email.' Telefonnummer: '.$phone.' '; //send the message, check for errors if (!$mail->send()) { echo "Mailer Error: " . $mail->ErrorInfo; } else { echo "Message sent!"; } ?>Save