do not send mail if receiver mail address is ''

This commit is contained in:
Uwe Steinmann 2021-02-02 21:53:49 +01:00
parent 79ed5b94ae
commit 83d54c3a36

View File

@ -97,6 +97,9 @@ class SeedDMS_EmailNotify extends SeedDMS_Notify {
return false;
}
if(!$to)
return false;
$returnpath = $this->from_address;
if(is_object($sender) && !strcasecmp(get_class($sender), $this->_dms->getClassname('user'))) {
$from = $sender->getFullName() ." <". $sender->getEmail() .">";