Home
last modified time | relevance | path

Searched refs:mail (Results 1 – 25 of 100) sorted by relevance

1234

/PHP-8.2/ext/standard/tests/mail/
H A Dmail_log.phpt2 Test mail() function : mail.log ini setting
4 sendmail_path={MAIL:mail.out}
5 mail.log = mail.log
10 $logfile = ini_get("mail.log");
18 $subject = "mail.log test";
19 $message = "Testing mail.log";
25 var_dump(mail($to, $subject, $message, $headers));
35 unlink("mail.log");
36 unlink("mail.out");
42 [%d-%s-%d %d:%d:%d UTC] mail() on [%smail_log.php:%d]: To: test@example.com -- Headers: X-Test: 1 -…
H A Dmail_null_bytes.phpt2 mail() with null bytes in arguments
7 mail("foo\0bar", "x", "y");
12 mail("x", "foo\0bar", "y");
17 mail("x", "y", "foo\0bar");
22 mail("x", "y", "z", "foo\0bar");
27 mail("x", "y", "z", "q", "foo\0bar");
34 mail(): Argument #1 ($to) must not contain any null bytes
35 mail(): Argument #2 ($subject) must not contain any null bytes
36 mail(): Argument #3 ($message) must not contain any null bytes
37 mail(): Argument #4 ($additional_headers) must not contain any null bytes
[all …]
H A Dgh7875.phpt5 $filename = __DIR__ . "/gh7875.mail.log";
19 sendmail_path={MAIL:{PWD}/gh7875.mail.out}
20 mail.log={PWD}/gh7875.mail.log
31 touch(__DIR__ . "/gh7875.mail.log");
32 chmod(__DIR__ . "/gh7875.mail.log", 0444);
35 mail('recipient@example.com', 'Subject', 'Body', []);
39 var_dump(file_exists(__DIR__ . "/gh7875.mail.out"));
44 @chmod(__DIR__ . "/gh7875.mail.log", 0644);
45 @unlink(__DIR__ . "/gh7875.mail.log");
46 @unlink(__DIR__ . "/gh7875.mail.out");
[all …]
H A Dmail_basic6.phpt2 Test mail() function : basic functionality
5 mail.add_x_header = Off
25 // Calling mail() with all additional headers
35 // Calling mail() with all additional headers
46 // Calling mail() with all additional headers
57 // Calling mail() with all additional headers
67 // Calling mail() with all additional headers
77 // Calling mail() with all additional headers
87 // Calling mail() with all additional headers
97 // Calling mail() with all additional headers
[all …]
H A Dmail_basic.phpt2 Test mail() function : basic functionality
5 mail.add_x_header = Off
8 echo "*** Testing mail() : basic functionality ***\n";
20 // Calling mail() with all additional headers
21 var_dump( mail($to, $subject, $message, $additional_headers) );
26 // Calling mail() with mandatory arguments
27 var_dump( mail($to, $subject, $message) );
33 *** Testing mail() : basic functionality ***
H A Dmail_variation2.phpt2 Test mail() function : variation force extra parameters
5 mail.force_extra_parameters="-n"
6 mail.add_x_header = Off
14 echo "*** Testing mail() : basic functionality ***\n";
24 var_dump( mail($to, $subject, $message) );
30 *** Testing mail() : basic functionality ***
H A Dmail_basic7.phpt2 Test mail() function : array extra header basic functionality
5 mail.add_x_header = Off
10 echo "*** Testing mail() : basic functionality ***\n";
31 // Calling mail() with all additional headers
33 var_dump(mail($to, $subject, $message, $additional_headers));
51 mail($to, $subject, $message, ['from' => array('foo2')]);
69 mail($to, $subject, $message, ['to' => array('foo5')]);
75 mail($to, $subject, $message, ['bcc' => array('foo6')]);
112 mail($to, $subject, $message, ['foo3' => array(123)]);
194 mail($to, $subject, $message, ["foo8" => array()]);
[all …]
H A Dmail_basic2.phpt2 Test mail() function : basic functionality
10 mail.add_x_header = Off
13 echo "*** Testing mail() : basic functionality ***\n";
26 // Calling mail() with all possible arguments
27 var_dump( mail($to, $subject, $message, $additional_headers, $additional_parameters) );
33 *** Testing mail() : basic functionality ***
H A Dbug69874.phpt2 Bug #69874: Null addtional_headers does not send mail
5 mail.add_x_header = Off
8 echo "*** Testing mail() : send email without additional headers ***\n";
18 var_dump( mail($to, $subject, $message) );
24 *** Testing mail() : send email without additional headers ***
H A Dbug47983.phpt2 Bug #47983 (mixed LF and CRLF line endings in mail())
7 var_dump(mail('user@example.com', 'Test Subject', 'A Message', 'KHeaders'));
8 $mail = file_get_contents('bug47983.out');
9 var_dump(preg_match_all('/(?<!\r)\n/', $mail));
H A Dbug69874_2.phpt2 Bug #69874: Null addtional_headers does not send mail
5 mail.add_x_header = On
8 echo "*** Testing mail() : send email without additional headers ***\n";
18 var_dump( mail($to, $subject, $message, '') );
24 *** Testing mail() : send email without additional headers ***
H A Dgh8086.phpt5 mail.mixed_lf_and_crlf=on
8 var_dump(mail('user@example.com', 'Test Subject', 'A Message', 'KHeaders'));
9 $mail = file_get_contents('gh8086.out');
10 var_dump(preg_match_all('/(?<!\r)\n/', $mail));
H A Dmail_variation1.phpt2 Test mail() function : variation invalid program for sendmail
12 echo "*** Testing mail() : variation ***\n";
18 var_dump( mail($to, $subject, $message) );
21 *** Testing mail() : variation ***
H A Dmail_basic5.phpt2 Test mail() function : basic functionality
12 echo "*** Testing mail() : basic functionality ***\n";
21 var_dump( mail($to, $subject, $message) );
24 *** Testing mail() : basic functionality ***
H A Dmail_variation_alt3-win32.phpt2 Test mail() function : basic functionality
22 echo "*** Testing mail() : basic functionality ***\n";
27 $subject = "$subject_prefix: Basic PHPT test for mail() function";
30 bool mail ( string \$to , string \$subject , string \$message [, string \$additional_headers [, str…
34 $res = mail($to, $subject, $message);
42 // Search for email message on the mail server using imap.
85 *** Testing mail() : basic functionality ***
87 Warning: mail(): Bad Message Return Path in %s on line %d
H A Dbug73203.phpt2 Bug #73203 (passing additional_parameters causes mail to fail)
4 We're not really interested in testing mail() here, but it is currently the
10 mail.add_x_header = Off
14 mail('test@example.com', 'subject', 'message', 'From: lala@example.com', '')
H A Dbug66535.phpt5 mail.add_x_header = On
8 echo "*** Testing mail() : send email without additional headers ***\n";
18 var_dump( mail($to, $subject, $message) );
24 *** Testing mail() : send email without additional headers ***
H A Dmail_variation_alt1-win32.phpt2 Test mail() function : basic functionality
23 echo "*** Testing mail() : basic functionality ***\n";
28 $subject = "$subject_prefix: Basic PHPT test for mail() function";
31 bool mail ( string \$to , string \$subject , string \$message [, string \$additional_headers [, str…
35 $res = mail($to, $subject, $message);
43 // Search for email message on the mail server using imap.
86 *** Testing mail() : basic functionality ***
88 Warning: mail(): Failed to connect to mailserver at "localhost" port 2525, verify your "SMTP" and "…
H A Dmail_variation_alt2-win32.phpt2 Test mail() function : basic functionality
23 echo "*** Testing mail() : basic functionality ***\n";
28 $subject = "$subject_prefix: Basic PHPT test for mail() function";
31 bool mail ( string \$to , string \$subject , string \$message [, string \$additional_headers [, str…
35 $res = mail($to, $subject, $message);
43 // Search for email message on the mail server using imap.
86 *** Testing mail() : basic functionality ***
88 Warning: mail(): Failed to connect to mailserver at "localplace" port 25, verify your "SMTP" and "s…
H A Dmail_basic_alt1-win32.phpt2 Test mail() function : basic functionality
24 echo "*** Testing mail() : basic functionality ***\n";
29 $subject = "$subject_prefix: Basic PHPT test for mail() function";
32 bool mail ( string \$to , string \$subject , string \$message [, string \$additional_headers [, str…
36 $res = mail($to, $subject, $message);
44 // Search for email message on the mail server using imap.
86 *** Testing mail() : basic functionality ***
H A Dmail_basic_alt2-win32.phpt2 Test mail() function : basic functionality
19 echo "*** Testing mail() : basic functionality ***\n";
24 $subject = "$subject_prefix: Basic PHPT test for mail() function";
27 bool mail ( string \$to , string \$subject , string \$message [, string \$additional_headers [, str…
33 $res = mail($to, $subject, $message, $extra_headers);
41 // Search for email message on the mail server using imap.
83 *** Testing mail() : basic functionality ***
H A Dmail_basic_alt3-win32.phpt2 Test mail() function : basic functionality
19 echo "*** Testing mail() : basic functionality ***\n";
24 $subject = "$subject_prefix: Basic PHPT test for mail() function";
27 bool mail ( string \$to , string \$subject , string \$message [, string \$additional_headers [, str…
33 $res = mail($to, $subject, $message, $extra_headers);
41 // Search for email message on the mail server using imap.
83 *** Testing mail() : basic functionality ***
H A Dmail_basic_alt4-win32.phpt2 Test mail() function : basic functionality
19 echo "*** Testing mail() : basic functionality ***\n";
24 $subject = "$subject_prefix: Basic PHPT test for mail() function";
27 bool mail ( string \$to , string \$subject , string \$message [, string \$additional_headers [, str…
34 $res = mail($to, $subject, $message, $extra_headers, $extra_parameters);
42 // Search for email message on the mail server using imap.
84 *** Testing mail() : basic functionality ***
/PHP-8.2/ext/filter/tests/
H A Dbug50158.phpt8 $email_address = "test=mail@example.com";
11 $email_address = "test-mail@example.com";
14 $email_address = "test+mail@example.com";
17 $email_address = "test?mail@example.com";
22 string(21) "test=mail@example.com"
23 string(21) "test-mail@example.com"
24 string(21) "test+mail@example.com"
25 string(21) "test?mail@example.com"
/PHP-8.2/ext/pcre/tests/
H A Dbug72463.phpt2 Bug #72463 mail fails with invalid argument
14 mail("some.address.it.wont.ever.reach@lookup.and.try.to.find.this.host.name","subject","a", "");
15 mail("some.address.it.wont.ever.reach@lookup.and.try.to.find.this.host.name","subject","a", NULL);

Completed in 40 milliseconds

1234