mirror of
https://github.com/IT4Change/gradido.git
synced 2026-01-20 20:01:31 +00:00
add Option to disable email, which don't work in docker
This commit is contained in:
parent
a38f2d67ae
commit
9668242c8a
@ -235,6 +235,8 @@ class TransactionCreation extends TransactionBase {
|
||||
|
||||
public function sendNotificationEmail($memo)
|
||||
{
|
||||
$disable_email = Configure::read('disableEmail', false);
|
||||
if($disable_email) return true;
|
||||
// send notification email
|
||||
$receiverUserId = $this->getStateUserId($this->getReceiverPublic());
|
||||
$receiverUser = $this->getStateUser($receiverUserId);
|
||||
|
||||
@ -214,7 +214,9 @@ class TransactionTransfer extends TransactionBase {
|
||||
public function sendNotificationEmail($memo)
|
||||
{
|
||||
// send notification email
|
||||
|
||||
$disable_email = Configure::read('disableEmail', false);
|
||||
if($disable_email) return true;
|
||||
|
||||
$senderAmount = $this->protoTransactionTransfer->getSenderAmounts()[0];
|
||||
$receiverAmount = $this->protoTransactionTransfer->getReceiverAmounts()[0];
|
||||
$senderUserId = $this->getStateUserId($senderAmount->getEd25519SenderPubkey());
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user