Home
last modified time | relevance | path

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

1234

/PHP-8.0/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.phpt4 sendmail_path={MAIL:{PWD}/gh7875.mail.out}
5 mail.log={PWD}/gh7875.mail.log
23 touch(__DIR__ . "/gh7875.mail.log");
24 chmod(__DIR__ . "/gh7875.mail.log", 0444);
27 mail('recipient@example.com', 'Subject', 'Body', []);
31 var_dump(file_exists(__DIR__ . "/gh7875.mail.out"));
36 @chmod(__DIR__ . "/gh7875.mail.log", 0644);
37 @unlink(__DIR__ . "/gh7875.mail.log");
38 @unlink(__DIR__ . "/gh7875.mail.out");
41 mail(%s): Failed to open stream: Permission denied
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 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 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 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 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 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 Dmail_variation_alt3-win32.phpt2 Test mail() function : basic functionality
18 echo "*** Testing mail() : basic functionality ***\n";
23 $subject = "$subject_prefix: Basic PHPT test for mail() function";
26 bool mail ( string \$to , string \$subject , string \$message [, string \$additional_headers [, str…
30 $res = mail($to, $subject, $message);
38 // Search for email message on the mail server using imap.
81 *** Testing mail() : basic functionality ***
83 Warning: mail(): Bad Message Return Path in %s on line %d
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
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…
31 $res = mail($to, $subject, $message);
39 // Search for email message on the mail server using imap.
82 *** Testing mail() : basic functionality ***
84 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
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…
31 $res = mail($to, $subject, $message);
39 // Search for email message on the mail server using imap.
82 *** Testing mail() : basic functionality ***
84 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
20 echo "*** Testing mail() : basic functionality ***\n";
25 $subject = "$subject_prefix: Basic PHPT test for mail() function";
28 bool mail ( string \$to , string \$subject , string \$message [, string \$additional_headers [, str…
32 $res = mail($to, $subject, $message);
40 // Search for email message on the mail server using imap.
82 *** Testing mail() : basic functionality ***
H A Dmail_basic_alt2-win32.phpt2 Test mail() function : basic functionality
15 echo "*** Testing mail() : basic functionality ***\n";
20 $subject = "$subject_prefix: Basic PHPT test for mail() function";
23 bool mail ( string \$to , string \$subject , string \$message [, string \$additional_headers [, str…
29 $res = mail($to, $subject, $message, $extra_headers);
37 // Search for email message on the mail server using imap.
79 *** Testing mail() : basic functionality ***
H A Dmail_basic_alt3-win32.phpt2 Test mail() function : basic functionality
15 echo "*** Testing mail() : basic functionality ***\n";
20 $subject = "$subject_prefix: Basic PHPT test for mail() function";
23 bool mail ( string \$to , string \$subject , string \$message [, string \$additional_headers [, str…
29 $res = mail($to, $subject, $message, $extra_headers);
37 // Search for email message on the mail server using imap.
79 *** Testing mail() : basic functionality ***
H A Dmail_basic_alt4-win32.phpt2 Test mail() function : basic functionality
15 echo "*** Testing mail() : basic functionality ***\n";
20 $subject = "$subject_prefix: Basic PHPT test for mail() function";
23 bool mail ( string \$to , string \$subject , string \$message [, string \$additional_headers [, str…
30 $res = mail($to, $subject, $message, $extra_headers, $extra_parameters);
38 // Search for email message on the mail server using imap.
80 *** Testing mail() : basic functionality ***
/PHP-8.0/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.0/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);
H A Dbug72463_2.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 33 milliseconds

1234