Linux vps-61133.fhnet.fr 4.9.0-19-amd64 #1 SMP Debian 4.9.320-2 (2022-06-30) x86_64
Apache/2.4.25 (Debian)
Server IP : 93.113.207.21 & Your IP : 216.73.216.41
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
src /
php-7.4.33 /
ext /
standard /
tests /
mail /
Delete
Unzip
Name
Size
Permission
Date
Action
bug51604.phpt
743
B
-rw-rw-r--
2022-10-31 11:36
bug54298.phpt
483
B
-rw-rw-r--
2022-10-31 11:36
bug66535.phpt
1.02
KB
-rw-rw-r--
2022-10-31 11:36
bug69115.phpt
436
B
-rw-rw-r--
2022-10-31 11:36
bug69874.phpt
979
B
-rw-rw-r--
2022-10-31 11:36
bug69874_2.phpt
1.01
KB
-rw-rw-r--
2022-10-31 11:36
bug72964.phpt
2.05
KB
-rw-rw-r--
2022-10-31 11:36
bug73203.phpt
661
B
-rw-rw-r--
2022-10-31 11:36
bug80706.phpt
2.17
KB
-rw-rw-r--
2022-10-31 11:36
bug80751.phpt
3.07
KB
-rw-rw-r--
2022-10-31 11:36
ezmlm_hash_basic.phpt
611
B
-rw-rw-r--
2022-10-31 11:36
mail_basic.phpt
1.35
KB
-rw-rw-r--
2022-10-31 11:36
mail_basic2.phpt
1.17
KB
-rw-rw-r--
2022-10-31 11:36
mail_basic3.phpt
768
B
-rw-rw-r--
2022-10-31 11:36
mail_basic4.phpt
769
B
-rw-rw-r--
2022-10-31 11:36
mail_basic5.phpt
767
B
-rw-rw-r--
2022-10-31 11:36
mail_basic6.phpt
9.47
KB
-rw-rw-r--
2022-10-31 11:36
mail_basic7.phpt
5.76
KB
-rw-rw-r--
2022-10-31 11:36
mail_basic_alt1-win32.phpt
2.3
KB
-rw-rw-r--
2022-10-31 11:36
mail_basic_alt2-win32.phpt
2.25
KB
-rw-rw-r--
2022-10-31 11:36
mail_basic_alt3-win32.phpt
2.25
KB
-rw-rw-r--
2022-10-31 11:36
mail_basic_alt4-win32.phpt
2.32
KB
-rw-rw-r--
2022-10-31 11:36
mail_include.inc
4.12
KB
-rw-rw-r--
2022-10-31 11:36
mail_log.phpt
941
B
-rw-rw-r--
2022-10-31 11:36
mail_skipif.inc
1.04
KB
-rw-rw-r--
2022-10-31 11:36
mail_variation1.phpt
737
B
-rw-rw-r--
2022-10-31 11:36
mail_variation2.phpt
1
KB
-rw-rw-r--
2022-10-31 11:36
mail_variation_alt1-win32.phpt
2.4
KB
-rw-rw-r--
2022-10-31 11:36
mail_variation_alt2-win32.phpt
2.4
KB
-rw-rw-r--
2022-10-31 11:36
mail_variation_alt3-win32.phpt
2.25
KB
-rw-rw-r--
2022-10-31 11:36
Save
Rename
--TEST-- Test mail() function : basic functionality --SKIPIF-- <?php if( substr(PHP_OS, 0, 3) != 'WIN' ) { die('skip...Windows only test'); } require_once(__DIR__.'/mail_skipif.inc'); ?> --INI-- max_execution_time = 120 --FILE-- <?php /* Prototype : int mail(string to, string subject, string message [, string additional_headers [, string additional_parameters]]) * Description: Send an email message * Source code: ext/standard/mail.c * Alias to functions: */ ini_set("SMTP", "localhost"); ini_set("smtp_port", 25); ini_set("sendmail_from", "user@example.com"); echo "*** Testing mail() : basic functionality ***\n"; require_once(__DIR__.'/mail_include.inc'); $subject_prefix = "!**PHPT**!"; $to = "$username"; $subject = "$subject_prefix: Basic PHPT test for mail() function"; $message = <<<HERE Description bool mail ( string \$to , string \$subject , string \$message [, string \$additional_headers [, string \$additional_parameters]] ) Send an email message HERE; $res = mail($to, $subject, $message); if ($res !== true) { exit("TEST FAILED : Unable to send test email\n"); } else { echo "Msg sent OK\n"; } // Search for email message on the mail server using imap. $imap_stream = imap_open($default_mailbox, $username, $password); if ($imap_stream === false) { echo "Cannot connect to IMAP server $server: " . imap_last_error() . "\n"; return false; } $found = false; $repeat_count = 20; // we will repeat a max of 20 times while (!$found && $repeat_count > 0) { // sleep for a while to allow msg to be delivered sleep(1); $current_msg_count = imap_check($imap_stream)->Nmsgs; // Iterate over recent msgs to find the one we sent above for ($i = 1; $i <= $current_msg_count; $i++) { // get hdr details $hdr = imap_headerinfo($imap_stream, $i); if (substr($hdr->Subject, 0 , strlen($subject_prefix)) == $subject_prefix) { echo "Id of msg just sent is $i\n"; echo ".. delete it\n"; imap_delete($imap_stream, $i); $found = true; break; } } $repeat_count -= 1; } if (!$found) { echo "TEST FAILED: email not delivered\n"; } else { echo "TEST PASSED: Msgs sent and deleted OK\n"; } imap_close($imap_stream, CL_EXPUNGE); ?> ===Done=== --EXPECTF-- *** Testing mail() : basic functionality *** Msg sent OK Id of msg just sent is %d .. delete it TEST PASSED: Msgs sent and deleted OK ===Done===