Skip to content
Snippets Groups Projects
Commit baba2913 authored by Andreas Gohr's avatar Andreas Gohr
Browse files

Merge pull request #49 from lupo49/master

The mail() function shouldn't be executed when no recipients are given.
parents d90bf47f 96569d48
No related branches found
No related tags found
No related merge requests found
......@@ -104,6 +104,9 @@ function _mail_send_action($data) {
$headers = isset($data['headers']) ? $data['headers'] : null;
$params = isset($data['params']) ? $data['params'] : null;
// discard mail request if no recipients are available
if(trim($to) === '' && trim($cc) === '' && trim($bcc) === '') return false;
// end additional code to support event ... original mail_send() code from here
if(defined('MAILHEADER_ASCIIONLY')){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment