Browse Source

always send with default email address

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
tags/v1.0.1
Arthur Schiwon 2 years ago
parent
commit
5ad348fd45
No known key found for this signature in database GPG Key ID: 7424F1874854DF23
2 changed files with 3 additions and 2 deletions
  1. +1
    -0
      .gitignore
  2. +2
    -2
      lib/Services/Request.php

+ 1
- 0
.gitignore View File

@@ -0,0 +1 @@
build

+ 2
- 2
lib/Services/Request.php View File

@@ -96,8 +96,8 @@ class Request {

protected function craftEmailTo(IUser $admin, IEMailTemplate $template) {
$defaults = new Defaults();
$senderAddress = $this->requester->getEMailAddress() ?: Util::getDefaultEmailAddress('no-reply');
$senderName = $this->requester->getEMailAddress() ? $this->requester->getDisplayName() : $defaults->getName();
$senderAddress = Util::getDefaultEmailAddress('no-reply');
$senderName = $defaults->getName();

$message = $this->mailer->createMessage();
$message->setTo([$admin->getEMailAddress() => $admin->getDisplayName()]);


Loading…
Cancel
Save