/php-src/ext/standard/tests/mail/ |
H A D | mail_log.phpt | 2 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 D | mail_null_bytes.phpt | 2 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 D | gh7875.phpt | 5 $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 D | mail_basic6.phpt | 2 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 D | mail_basic.phpt | 2 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 D | mail_variation2.phpt | 2 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 D | mail_basic7.phpt | 2 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 D | mail_basic2.phpt | 2 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 D | bug69874.phpt | 2 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 D | mail_basic_win.phpt | 2 Test mail() function : basic functionality (win) 19 return mail($to, $subject, $message); 27 return mail($to, $subject, $message, $headers); 35 return mail($to, $subject, $message, $headers); 44 return mail($to, $subject, $message, $headers, $parameters); 53 $subject = "{$index}: Basic PHPT test for mail() function"; 56 bool mail ( string \$to , string \$subject , string \$message [, string \$additional_headers [, str… 69 $mail = $mailBox->getMailsBySubject($subject); 72 if ($mail->isAsExpected($from, $to, $subject, $message)) { 81 $subject = "{$i}: Basic PHPT test for mail() function";
|
H A D | mail_variation_win.phpt | 2 Test mail() function : basic functionality (win) 48 $subject = "{$index}: Basic PHPT test for mail() function"; 51 bool mail ( string \$to , string \$subject , string \$message [, string \$additional_headers [, str… 55 $res = mail($to, $subject, $message); 62 $mail = $mailBox->getMailsBySubject($subject); 65 if ($mail->count() > 0) { 74 $subject = "{$i}: Basic PHPT test for mail() function"; 83 Warning: mail(): Bad Message Return Path in %s on line %d 86 Warning: mail(): Failed to connect to mailserver at "localhost" port 2525, verify your "SMTP" and "… 89 Warning: mail(): Failed to connect to mailserver at "localplace" port 1025, verify your "SMTP" and …
|
H A D | bug47983.phpt | 2 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 D | bug69874_2.phpt | 2 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 D | gh8086.phpt | 5 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 D | mail_variation1.phpt | 2 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 D | mail_basic5.phpt | 2 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 D | bug73203.phpt | 2 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 D | bug66535.phpt | 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 D | bug51604.phpt | 5 mail.add_x_header = Off 16 // Calling mail() with all additional headers 17 var_dump( mail($to, $subject, $message, $additional_headers) );
|
H A D | gh13415.phpt | 2 GH-13415 (Added validation of line breaks \n in $additional_headers of mail()) 9 …mail('to@example.com', 'Test Subject', 'A Message', ['Reply-To' => "foo@example.com \nCc: hacker@e… 16 …mail('to@example.com', 'Test Subject', 'A Message', ['Reply-To' => "foo@example.com \rCc: hacker@e… 23 …mail('to@example.com', 'Test Subject', 'A Message', ['Reply-To' => "foo@example.com \r\nCc: hacker… 30 …mail('to@example.com', 'Test Subject', 'A Message', ['Reply-To' => "foo@example.com \0Cc: hacker@e…
|
H A D | bug80751.phpt | 34 $res = mail($toLine, $subject, $message, $headers); 44 $mail = $mailBox->getMailsBySubject($subject); 47 if ($mail->isAsExpected($fromLine, $toLine, $subject, $message)) { 51 if ($mail->getHeader('Return-Path') === $from) { 55 if ($mail->getHeader('Cc') === $ccLine) {
|
/php-src/ext/filter/tests/ |
H A D | bug50158.phpt | 8 $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-src/ext/pcre/tests/ |
H A D | bug72463.phpt | 2 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 D | bug72463_2.phpt | 2 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);
|
/php-src/ext/mbstring/tests/ |
H A D | gh8086.phpt | 7 mail.mixed_lf_and_crlf=on 13 $subject = "test mail"; 14 $message = "body of testing php mail";
|