D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
realadss
/
kavyaeventz.in
/
backup
/
Filename :
mail.php
back
Copy
<?php require 'phpmailer/PHPMailer/class.phpmailer.php'; require 'phpmailer/PHPMailer/class.smtp.php'; require "phpmailer/PHPMailer/PHPMailerAutoload.php"; $name = $_POST['name']; $email = $_POST['email']; $phone = $_POST['phone']; $msg = $_POST['msg']; $message2 = ' <html> <head> <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.6.2/dist/css/bootstrap.min.css"> <script src="https://cdn.jsdelivr.net/npm/jquery@3.6.4/dist/jquery.slim.min.js"></script> <script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.1/dist/umd/popper.min.js"></script> <script src="https://cdn.jsdelivr.net/npm/bootstrap@4.6.2/dist/js/bootstrap.bundle.min.js"></script> </head> <body> <div> <h3>Enquiry Mail</h3> <div class="row"> <div class="col-6">Name - '.$name.'</div> <div class="col-6">Email - '.$email.'</div> <div class="col-6">Contact info - '.$phone.'</div> <div class="col-6">message info - '.$msg.'</div> </div> </body> </html> '; // print_r($message2); $mail = new PHPMailer(); $mail->IsSMTP(); $mail->SMTPDebug = 0; $mail->SMTPAuth = true; $mail->Host = 'mail.sdigindia.com'; $mail->Username = 'info@sdigindia.com'; $mail->Password = 'Welcome@2121@'; // $mail->SMTPAutoTLS = true; $mail->SMTPSecure = 'ssl'; $mail->Port = 465; $mail->setFrom="info@sdigindia.com"; $mail->FromName="sdigindia : Website Inquiry"; $mail->addAddress("info@sdigindia.com"); $mail->IsHTML(true); $mail-> Subject = "Enquiry"; $mail-> Body = $message2; if($mail->send()){ echo header("location:thanku.php"); }else{ echo ("Mail not Send!"); } ?>