Server IP : 2a02:4780:11:1361:0:bf7:7935:10 / Your IP : 18.191.234.22 Web Server : LiteSpeed System : Linux in-mum-web1261.main-hosting.eu 4.18.0-553.37.1.lve.el8.x86_64 #1 SMP Mon Feb 10 22:45:17 UTC 2025 x86_64 User : u200767797 ( 200767797) PHP Version : 8.1.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : OFF | Python : ON Directory (0755) : /home/u200767797/domains/drusonpharma.com/../healthkeylifescience.com/public_html/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
<?php use PHPMailer\PHPMailer\PHPMailer; use PHPMailer\PHPMailer\SMTP; //use PHPMailer\PHPMailer\Exception; //require_once __DIR__ . '/vendor/phpmailer/src/Exception.php'; require_once __DIR__ . '/vendor/phpmailer/src/PHPMailer.php'; require_once __DIR__ . '/vendor/phpmailer/src/SMTP.php'; //Load Composer's autoloader require 'vendor/autoload.php'; if(isset($_POST['send'])){ $mail = new PHPMailer(true); $name = $_POST['name']; $email = $_POST['email']; $message = $_POST['message']; //$mail->SMTPDebug = SMTP::DEBUG_SERVER; // for detailed debug output $mail->isSMTP(); //Send using SMTP $mail->Host = 'smtp.gmail.com'; //Set the SMTP server to send through $mail->SMTPAuth = true; //Enable SMTP authentication $mail->Username = 'mail.smtp90@gmail.com'; //SMTP username $mail->Password = 'kopwpfbcgqlozcfc'; //SMTP password $mail->SMTPSecure = PHPMailer::ENCRYPTION_SMTPS; //Enable implicit TLS encryption $mail->Port = 465; //TCP port to connect to; use 587 if you have set `SMTPSecure = PHPMailer::ENCRYPTION_STARTTLS` //Recipients $mail->setFrom('mail.smtp90@gmail.com', 'Sira Lifecare'); $mail->addAddress('hivends.sukhbir@gmail.com'); //Attachments // $mail->addAttachment('/var/tmp/file.tar.gz'); //Add attachments // $mail->addAttachment('/tmp/image.jpg', 'new.jpg'); //Optional name //Content $mail->isHTML(true); //Set email format to HTML $mail->Subject = 'Enquiry Received from '. $name; $mail->Body = '<html> <style> .body { width: 98%; margin: 0 auto; font-family: arial; padding: 0 !important; overflow-x: hidden; } table tr { width: 100%; float: left; } </style> <body class="body"> <div style="background: #fff;width: 100%;float: left;"> <h1 style="color:#000;margin-bottom:5px;background: #fff;margin-top: 4px;font-size: 23px;text-align: center;width: 100%;float: left;font-weight:normal;"> <b> <span style="width: 100%;float: left;color: red;"> <font style="color: #005DA9;">Healthkey </font> Lifesciences </span> <p style="float: left;width: 100%;font-size: 18px;padding: 0;margin: 9px 0;background: #005DA9;color: #fff;"> Enquiry Received from Healthkey Lifesciences Website <p> </b> </h1> <table style="width: 100%;float:left;background: #f4f4f4;"> <tr> <td style="width:32%;float: left;padding: 9px 3px;font-size: 14px;font-weight: bold;">Name :</td> <td style="text-transform: capitalize;width:63%;float: left;padding: 9px 3px;font-size: 14px;">'.$name.'</td> </tr> <tr> <td style="width:32%;float: left;padding: 9px 3px;font-size: 14px;font-weight: bold;">Email :</td> <td style="text-transform: capitalize;width:63%;float: left;padding: 9px 3px;font-size: 14px;">'.$email.'</td> </tr> <tr> <td style="width:32%;float: left;padding: 9px 3px;font-size: 14px;font-weight: bold;">Message :</td> <td style="text-transform: capitalize;width:63%;float: left;padding: 9px 3px;font-size: 14px;">'.$message.'</td> </tr> <tr> <td></td> <td></td> </tr> </tbody> </table> <p style="float: left;text-align:center;width: 100%;font-size: 14px;padding: 0;margin: 9px 0;background: #005DA9;color: #fff;">Source Sira Lifecare | Website Maintained by Pharma Vends</p> </div> </body> </html>'; $mail->send(); ?> <script>window.location="https://www.healthkeylifescience.com/thankyou.php";</script> <?php } else { ?> <script>window.location="https://www.healthkeylifescience.com/contact.php";</script> <?php } ?>