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 :
~
/
home1
/
andjemzt
/
nportal.andjemztech.com
/
Edit File:
mail_test.php
<?php ini_set('display_errors',1); //require_once ('Mail/mime.php'); require_once "Mail.php"; // PEAR Mail package require_once ('Mail/mime.php'); // PEAR Mail_Mime packge @sendMail(); function sendMail(){ $from = "info@niqs.org.ng"; //enter your email address $to = "o.ebiloma@niqs.org.ng"; //enter the email address of the contact your sending to $subject = "Mail Test Message"; // subject of your email $headers = array ('From' => $from,'To' => $to, 'Subject' => $subject); $text = ''; // text versions of email. $html = "<html><body>Name: Test <br> Email: n.ogungbemi@niqs.org.ng <br>Message: Mail Test 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 = "Welcome007!"; // your password (same as webmail password) $smtp = Mail::factory('smtp', array ('host' => $host, 'auth' => true, 'username' => $username,'password' => $password, 'port' => 26)); $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 to receivers!</p>"); // header("Location: http://www.example.com/"); } } ?>
Simpan