开发者

What are All the Ways a Programmer Could use PHP to Send an Email? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.

Want to improve this question? Update the question so it focuses on one problem only by editing this post.

Closed 4 years ago.

Improve this q开发者_运维技巧uestion

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... http://us2.php.net/manual/en/ref.exec.php

exec
passthru
proc_close
proc_get_status
proc_open
proc_terminate
shell_exec
system
` 

IMAP may be another depending on how PHP was configured... http://www.php.net/manual/en/ref.imap.php

   fsockopen is most likely the other one


fsockopen is most likely the other one.


IMAP may be another depending on how PHP was configured... http://www.php.net/manual/en/ref.imap.php


Sneaky way would be to turn off your local mail service and check your php error logs for the sendmail errors you get :)

This should stop php from being able to send emails locally


Just looking at the mail() docs, it looks like Pear::Mail would be a good candidate, or at least better.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜