setFrom(SITE_NAME." "); // Set the Return header $mail->setReturnPath("ereturn@".SITE_NAME_MAIL); // Set the Priority - normal, high $mail->setPriority("normal"); //$Subject = ' Few days left - Ramadan upto 25% discount will end soon '; $gcommoff=fnChkCommOffAdm(); $discountPer=0; /*if(count($gcommoff)>0){ $discountReason = $gcommoff['f_offer_name']; $discountPer=$gcommoff['comm_discount']; if($discountPer==0||$discountPer==""){ $month3=$gcommoff['3month_discount']; $month6=$gcommoff['6month_discount']; $month9=$gcommoff['9month_discount']; if($month3>0){ $discountPer=$month3; }elseif($month6>0){ $discountPer=$month6; }elseif($month9>0){ $discountPer=$month9; } $discountPerArr[3]=$month3; $discountPerArr[6]=$month6; $discountPerArr[9]=$month9; }else{ $discountPerArr[3]=$discountPer; $discountPerArr[6]=$discountPer; $discountPerArr[9]=$discountPer; } }else{ $discountPerArr[3]=$discountPer; $discountPerArr[6]=$discountPer; $discountPerArr[9]=$discountPer; }*/ $arg["resid"]=$resid; $arg["nation"]=$pro_nation; $packdet=fnAdminCommOffer($arg); //print_r($packdet); $currency=$packdet['cur_sym']; $saveupto=$packdet['save_upto']; $discountPer=$packdet['discount']; if($saveupto==0 || $discountPer==0){ return 1; } $discounttxt=$discountPer."%"; if($packdet['off_type']==2){ $discounttxt=$currency.$discountPer; } $Subject = ' Grab the offer now - '.$discounttxt.' off on membership plans - ('.$sub_date.')'; $html = ' Nikah.com - Newsletters

You are receiving this mail as a registered member of nikah.com
Please add ealerts@'.SITE_NAME_MAIL.' to your address book to ensure delivery of e-mails, profile responses into your inbox

'.$sub_date.'

Assalam Alaikum

Dear '.$uName.' ('.$ProfileId.'),

Make use of our special offer to find your special someone

IT´s NOW OR NEVER!

Limited Period Offer!!

You save upto : '.$currency ." ". $saveupto.'

FLAT'.$discounttxt.'OFF

The benefits you enjoy as a paid membership are:

  • Get priority at the search results to receive more responses
  • Access verified mobile numbers
  • Chat instantly with interested prospects
  • Exchange messages and get in touch
Upgrade Now

If you haven´t upgraded your membership yet, it is time to do so now Upgrade Now!

'; //echo $html;exit; // Set the Subject $mail->setSubject($Subject); // Create the HTML email $mail->setHTML($html, ""); // Create Message Text/plain $Message = ""; $mail->setText($Message); $toAdd = $uDet["pro_email"]; //$toAdd = "varusai24@gmail.com"; //exit; return $result = $mail->send(array($toAdd)); } // get user details who has been invited by others function getUserProfileDetail($ProfileId) { global $inputs,$dbase; $sql = "select dpro_name,pro_email,pro_resid,pro_nation,pro_type from profile p join det_profile d on p.pro_profileid = d.dpro_profileid where p.pro_profileid = '$ProfileId'"; $exeQuery = $dbase->db_sql_query($sql); $proDetArray = array(); if (count($exeQuery) > 0) { if (is_array($exeQuery[0])) { $proDetArray = $exeQuery; } else { $proDetArray[0] = $exeQuery; } } return $proDetArray; } // get my photo status function getMyPhotoStaDet($ProfileId) { global $inputs,$dbase; $sql = "select count(ph_profileid) cnt from photo_status where ph_profileid = '$ProfileId'"; $exeQuery = $dbase->db_sql_query($sql); return $exeQuery['cnt']; } ?>