mirror of
https://github.com/friendica/friendica
synced 2025-04-26 21:10:16 +00:00
Set Sitename / site email as sender for system emails
This commit is contained in:
parent
0966cdbb26
commit
9428466d1d
8 changed files with 27 additions and 17 deletions
|
@ -138,11 +138,7 @@ abstract class MailBuilder
|
|||
*/
|
||||
public function build(bool $raw = false)
|
||||
{
|
||||
if (empty($this->recipientAddress)) {
|
||||
throw new InternalServerErrorException('Recipient address is missing.');
|
||||
}
|
||||
|
||||
if ((empty($this->senderName) || empty($this->senderAddress)) &&
|
||||
if ((empty($this->recipientAddress)) &&
|
||||
!empty($this->recipientUid)) {
|
||||
$user = User::getById($this->recipientUid, ['username', 'email']);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue