One Hat Cyber Team
Your IP :
216.73.216.84
Server IP :
50.6.229.107
Server :
Linux server.hostburly.com 5.14.0-611.38.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Mar 10 17:21:28 EDT 2026 x86_64
Server Software :
Apache
PHP Version :
8.2.30
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
andjemzt
/
nportal.andjemztech.com
/
membership
/
View File Name :
event_mail.php
<?php ini_set('display_errors',1); //require_once ('Mail/mime.php'); /*****ACTION POINT START***/ //uncomment the requires //uncomment the sent update //uncomment the connectionstring //uncomment send mail /*****ACTION POINT END***/ require_once "Mail.php"; // PEAR Mail package require_once ('Mail/mime.php'); // PEAR Mail_Mime packge mysql_connect("localhost","niqsorgn_portal","@Xchange69!"); mysql_select_db("niqsorgn_pota1969"); //mysql_connect("localhost","root","@ajagbe@"); //mysql_select_db("niqs"); $sql=mysql_query("SELECT * FROM event_conference "); if(!$sql){ echo mysql_error(); } /*$sql=mysql_query("SELECT * FROM event_conference "); DESC LIMIT 0 , 600 */ while ($row=mysql_fetch_array($sql)){ $email=$row['confEmail']; $html='<table> <tr><td height="370" valign="top" style="padding-left:120px !important;"> <p> Dear Member,<br><br> This is to inform you that you can now print your BGM Certificate from our website.<br><br> Kindly follow these steps to print the BESMM4 Workshop Certificate.<br><br> 1. Log on to <a href="http://portal.niqs.org.ng/events/printCert">portal.niqs.org.ng/events/printCert</a><br> 2. On the navigation bar, locate and click on Certificate<br> 3. From the drop down menu, click on BESMM4 Certificate <br> 4. Enter the four digit number on your BESMM4 attendance form/receipt number<br> 5. Click on the Print Certificate or Download Certificate<br><br> Thank you.<br><br> NIQS SECRETARIAT<br> (08028303346) </p> </td></tr> </table>'; if (sendMail($email,$html)) { //update sent @sendMail("cron_mail@niqs.org.ng,$html"); }else{ echo "Error Sending Mail"; } //@sendMail("cron_mail@niqs.org.ng",$html); //mysql_query("UPDATE members SET sent='2' WHERE memberNo='$memNo'"); } //@sendMail("n.ogungbemi@niqs.org.ng",$html); function sendMail($email,$html){ $from = "info@niqs.org.ng"; //enter your email address $to = $email; //enter the email address of the contact your sending to $subject = "BESMM4 WORKSHOP CERTIFICATE"; // subject of your email $headers = array ('From' => $from,'To' => $to, 'Subject' => $subject); $text = ''; // text versions of email. //$html = "<html><body>Name: $name <br> Email: $email <br>Message: $message <br></body></html>"; // html versions of email. $crlf = "\n"; $mime = new Mail_mime($crlf); //$mime->setTXTBody($text); $mime->setHTMLBody($html); //do not ever try to call these lines in reverse order $body = $mime->get(); $headers = $mime->headers($headers); $host = "localhost"; // all scripts must use localhost $username = "info@niqs.org.ng"; // your email address (same as webmail username) $password = "{{Great}}"; // your password (same as webmail password) $smtp = Mail::factory('smtp', array ('host' => $host, 'auth' => true, 'username' => $username,'password' => $password,'port' => 25)); $mail = $smtp->send($to, $headers, $body); if (PEAR::isError($mail)) { return 0; //echo("<p>" . $mail->getMessage() . "</p>"); } else { return 1; //echo("<p>Message successfully sent!</p>"); // header("Location: http://www.example.com/"); } } function strafter($string, $substring) { $pos = strpos($string, $substring); if ($pos === false) return $string; else return(substr($string, $pos+strlen($substring))); } function strbefore($string, $substring) { $pos = strpos($string, $substring); if ($pos === false) return $string; else return(substr($string, 0, $pos)); } ?>