note 128151 added to function.mail

From: Date: Thu, 26 Jan 2023 00:23:41 +0000
Subject: note 128151 added to function.mail
Groups: php.notes 
Request: Send a blank email to php-notes+get-220107@lists.php.net to get a copy of this message
mail() internals: doing some tests i can say... if sendmail_path is defined in php.ini or by ini.set(), by calling function like... mail($to, $subject, $message, $headers, $params) would be like if php open a shell internally, execute this command, send this text to stdin, and return true if return value == 0 ------------ shell> $sendmail_path $params To: $to Subject: $subject $headers $message (EOF) ------------ in windows instead using php smtp which is very limited, i prefer to force use sendmail-like behavior, by setting sendmail_path and then use msmtp for windows ---- Server IP: 45.112.84.4 Probable Submitter: 45.91.158.213 (proxied: 181.43.109.54) ---- Manual Page -- https://php.net/manual/en/function.mail.php Edit -- https://main.php.net/note/edit/128151 Del: integrated -- https://main.php.net/note/delete/128151/integrated Del: useless -- https://main.php.net/note/delete/128151/useless Del: bad code -- https://main.php.net/note/delete/128151/bad+code Del: spam -- https://main.php.net/note/delete/128151/spam Del: non-english -- https://main.php.net/note/delete/128151/non-english Del: in docs -- https://main.php.net/note/delete/128151/in+docs Del: other reasons-- https://main.php.net/note/delete/128151 Reject -- https://main.php.net/note/reject/128151 Search -- https://main.php.net/manage/user-notes.php

« previous php.notes (#220107) next »