I’m looking for a list of built in PHP functions that a programmer could use to send an email.
The obvious answer here is mail(), but I’m also looking for a list of functions someone might use to manually open a connection to an MTA, or spawn a process on the local machine which might in turn send an email using sendmail, postfix, etc.
The context here is I want to scan a large, unknown codebase for code that’s sending out email (because we already located a call to mail(), and that’s not doing it)
And as well as the backtick, also check for popen() and system execution functions…
https://www.php.net/manual/en/ref.exec.php
IMAP may be another depending on how PHP was configured… http://www.php.net/manual/en/ref.imap.php