assign('clientarea','user.venderforget.tpl'); $smarty->display('dash/user.mainpage.tpl'); } else { //get the authorization object and then check if the user name and password is correct if(isset($_POST['forgetpass'])) { $ovendorreg = new Cvendorreg(); $login= $ovendorreg->get_forgetuser($_POST["username"]); if ($login) { $ma_vendor_member_code_int = $login[0]["ma_vendor_member_code_int"]; $user_data=$ovendorreg->get_user($ma_vendor_member_code_int); $ma_mobile_no = $user_data[0]['ma_mobile_no']; $ma_email = $user_data[0]['ma_email']; $ma_password = $user_data[0]['ma_password']; $ma_contact_person = $user_data[0]['ma_contact_person']; $ma_vendor_regcode = $user_data[0]['ma_vendor_regcode']; $ma_vendor_regcode_alpha = $user_data[0]['ma_vendor_regcode_alpha']; $strData .= "

M/s. $ma_contact_person


Dear Sir,

Surya WALL-CARE Chem Pvt Ltd. is leading ISO 9001:2008 Certified Hi Performance Specialty Paints and Coating Chemicals manufacturing Company of India. We are also manufacturing of Decorative Paint Products.

Details of your Surya Wall Care Vendor Zone Vendor Code, User ID and Password:

"; $strData .= "

"."Vendor Code ".": - "." $ma_vendor_regcode_alpha

"; $strData .= "

"."User ID ".": - "." $ma_email "." OR "." $ma_mobile "."

"; $strData .= "

"."Password ".": - "." $ma_password "."

Thanking you,

 

Vendor Cell

Surya Wall Care Chem Pvt. Ltd.

"; $mail_to = $ma_email; $mail_subject = "Vendor Zone Password Details"; //$mail_message = $strData; $mail_boundary="RR-TTXXMultipart_Message_Boundary_1"; //the headers will contain the mime version and the type of message // $headers = "From:$emailto"; // Always set content-type when sending HTML email //$headers .= "\nMIME-Version: 1.0\n" . // "Content-Type: multipart/mixed;\n". // " boundary=\"{$mail_boundary}\""; $headers = "MIME-Version: 1.0" . "\r\n"; $headers .= "Content-type:text/html;charset=UTF-8" . "\r\n"; $headers .= 'From: ' . "\r\n"; //$mail_message = "This is a multipart message in MIME format.\n\n"; //$mail_message .= "--{$mail_boundary}\n"; //$mail_message .= "Content-Type:text/plain; charset=us-ascii\n"; // $mail_message .= "Content-Transfer-Encoding: 7bit\n\n"; $mail_message .= $strData . "\n"; //$mail_to2="admin@machchhudeep.com"; // $retval = @mail($mail_to2, $mail_subject, $mail_message, $headers); $retval = @mail($mail_to, $mail_subject, $mail_message, $headers); $mymsg="Details of Your Vendor Zone Password. Vendor Code: ".$ma_vendor_regcode_alpha. " User ID: ".$ma_email. " OR ".$ma_mobile_no. " Password: ".$ma_password." "."Vendor Cell Surya Wall Care Chem Pvt Ltd. "; $url="http://trans.smsbazaar.biz/sendsms.aspx?mobile=9227205504&pass=surya@1999&senderid=SWCCPL&to=$ma_mobile_no&msg=" . urlencode($mymsg) . ""; $ch = curl_init(); $timeout = 10; // set to zero for no timeout curl_setopt ($ch, CURLOPT_URL, $url); curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt ($ch, CURLOPT_CONNECTTIMEOUT, $timeout); $file_contents = curl_exec($ch); curl_close($ch); $smarty->assign('message2','Password Send to Your Email & Mobile'); $smarty->assign('clientarea','user.venderforget.tpl'); $smarty->display('dash/user.mainpage.tpl'); } else { $smarty->assign('message1','No User Found of Email'); $smarty->assign('clientarea','user.venderforget.tpl'); $smarty->display('dash/user.mainpage.tpl'); } } } ?>