Preview: sendemail.php
Size: 5.41 KB
/home/justbyquicklly-old/www/sendemail.php
<?php
include("include/config.php");
if (isset($_POST['name']))
{
$name = mysqli_real_escape_string($GLOBALS['conn'], strip_tags($_POST['name']));
}
if (isset($_POST['email']))
{
$from = mysqli_real_escape_string($GLOBALS['conn'], strip_tags($_POST['email']));
}
if (isset($_POST['subject']))
{
$subject = mysqli_real_escape_string($GLOBALS['conn'], strip_tags($_POST['subject']));
}
if (isset($_POST['message']))
{
$message = mysqli_real_escape_string($GLOBALS['conn'], strip_tags($_POST['message']));
}
if(SITE_URL=='https://justbyquicklly.com/'){
$to = "[email protected]";//replace with your email
}else{
$to = "[email protected]";//replace with your email
}
//$headers = "MIME-Version: 1.0";
//@mail($to, $subject, $message, $headers);
//die;
$prohibited_word=array('/','|','\n','\r','porn','sex','backlink','$','free','>>','=','&','.co','gallery','video','movie','traffic','http','Ð','Ñ','bot','money','financ','robot','$','income','pic','form','к','Е','¿','dollar','rich','#1','100% more','free','100% satisfied','Be your own boss','Best price','Big bucks','Billion','Cash bonus','Cents on the dollar','Consolidate debt','Double your cash','Earn extra cash','Eliminate bad credit','Extra cash','Expect to earn','Fast cash','Full refund','Get out of debt','Get paid','Giveaway','Guaranteed','Increase sales','Incredible deal','Lower rates','Lowest price','Million dollars','Miracle','Once in a lifetime','One time','Pennies a day','Potential earnings','Prize','Promise','Pure profit','Satisfaction guaranteed','Save up to','Special promotion','Act now','Apply now','Become a member','Call now','Click below','Click here','Get it now','Do it today','Don’t delete','Exclusive deal','Get started now','Important information regarding','Information you requested','Instant','Limited time','New customers only','Order now','Please read','See for yourself','Take action','This won’t last','Urgent','What are you waiting for?','While supplies last','Will not believe your eyes','Winner','Winning','You are a winner','You have been selected','Bulk email','Buy direct','Cancel at any time','Check or money order','Congratulations','Confidentiality','Cures','Dear friend','Direct email','Direct marketing','Hidden charges','Human growth hormone','Internet marketing','Lose weight','Mass email','Meet singles','Multi-level marketing','No catch','No cost','No credit check','No fees','No gimmick','No hidden costs','No hidden fees','No interest','No investment','No obligation','No purchase necessary','No questions asked','No strings attached','Not junk','Notspam','Obligation','Passwords','Requires initial investment','Social security number','This isn’t a scam','This isn’t junk','This isn’t spam','Undisclosed','Unsecured credit','Unsecured debt','Unsolicited','Valium','Viagra','Vicodin','We hate spam','Weight loss','Xanax','Accept credit cards','Ad','All new','As seen on','Bargain','Beneficiary','Billing','Bonus','Cards accepted','Cash','Certified','Cheap','Claims','Clearance','Compare rates','Credit card offers','Deal','Debt','Discount','Fantastic','In accordance with laws','Investment','Join millions','Lifetime','Loans','Luxury','Marketing solution','Message contains','Mortgage rates','Name brand','Offer','Online marketing','Opt in','Pre-approved','Quote','Rates','Refinance','Removal','Reserves the right','Score','Search engine','Sent in compliance','Subject to…','Terms and conditions','Trial','Unlimited','Warranty','Work from home');
$prohibited_word_exist='';
/*$mac=exec('getmac');
$mac=strtok($mac, '');*/
$pfw_header = "[email protected]";
$pfw_subject = $subject;
$pfw_email_to = $to;
$pfw_message = "<br>Name: ".$name." <br>Email: ".$from."<br>";
$pfw_message .= $message;
$pfw_message .= "<br>From IP : ".$_SERVER['REMOTE_ADDR'];
//$pfw_message .= "<br>From Mac : ".$mac;
foreach ($prohibited_word as $word) {
if ((strpos($message, $word) !== FALSE) || (strpos($subject, $word) !== FALSE) || (strpos($name, $word) !== FALSE)) {
//echo "Match found";
$prohibited_word_exist='1';
}
}
if($prohibited_word_exist!='1'){
//$sent = mail($pfw_email_to, $pfw_subject, $pfw_message, $pfw_header ) ;
include_once("include/Sendmail.php");
$sendmail = new Sendemail();
$fromEmail = $pfw_header;
$fromName = $name;
$toEmail = $to;
$toName = "Quicklly.com";
$emailBody = $pfw_message;
$replyTo = $pfw_header;
$bcc ="";
//$sent = $sendmail->sendEmail($fromEmail, $fromName, $toEmail, $toName, $subject, $emailBody, $bcc, $replyTo);
//Simple web mail
$headers = "MIME-Version: 1.0"."\r\n";
$headers .= "Content-type:text/html;charset=windows-1254"."\r\n";
$headers .= "From: $name <$from> \r\n";
@mail($toEmail, $subject, $emailBody, $headers);
//var_dump($sent);exit;
header("location:contact-us.php?sent=Thanks for writing to us!");
exit;
}else{
header("location:contact-us.php?sent=You are trying something wrong!");
exit;
}
?>
Directory Contents
Dirs: 12 × Files: 59