Linux ns1.utparral.edu.mx 6.8.0-79-generic #79~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Fri Aug 15 16:54:53 UTC 2 x86_64
Apache/2.4.58 (Unix) OpenSSL/1.1.1w PHP/8.2.12 mod_perl/2.0.12 Perl/v5.34.1
: 10.10.1.9 | : 10.10.1.254
Cant Read [ /etc/named.conf ]
daemon
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
README
+ Create Folder
+ Create File
/
opt /
lampp /
lib /
php /
doc /
Mail_Queue /
docs /
[ HOME SHELL ]
Name
Size
Permission
Action
add_example.php
1.12
KB
-rw-r--r--
base.php
405
B
-rw-r--r--
mdb_mail_queue_schema.xml
2.16
KB
-rw-r--r--
mysql.sql
818
B
-rw-r--r--
pgsql.sql
581
B
-rw-r--r--
README
78
B
-rw-r--r--
send_example.php
219
B
-rw-r--r--
TODO
56
B
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : add_example.php
<?php require_once 'base.php'; $mail_queue =& new Mail_Queue($db_options, $mail_options); $from = 'user@server.com'; $from_name = 'Chief'; $recipient = 'user2@server.com'; $recipient_name = 'admin'; $message = 'Hi! This is test message!! :)'; $from_params = !empty($from_name) ? '"'.$from_name.'" <'.$from.'>' : '<'.$from.'>'; $recipient_params = !empty($recipient_name) ? '"'.$recipient_name.'" <'.$recipient.'>' : '<'.$recipient.'>'; $hdrs = array( 'From' => $from_params, 'To' => $recipient_params, 'Subject' => 'test message body', ); $mime =& new Mail_mime; $mime->setTXTBody($message); $body = $mime->get(); $hdrs = $mime->headers($hdrs); /* Put message to queue */ $mail_queue->put($from, $recipient, $hdrs, $body); /* Also you could put this msg in more advanced mode */ // how many seconds wait to send mail $seconds_to_send = 3600; // delete mail from db after send? $delete_after_send = false; // if you backup some mails in db you could group them later by the user identifier, for example $id_user = 7; $mail_queue->put($from, $recipient, $hdrs, $body, $seconds_to_send, $delete_after_send, $id_user); ?>
Close