Signed-off-by: dartcafe <github@dartcafe.de>
This commit is contained in:
dartcafe 2021-05-28 11:03:28 +02:00
Родитель b250e4934c
Коммит fdd1a4cd67
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: CCE73CEF3035D3C8
3 изменённых файлов: 7 добавлений и 7 удалений

Просмотреть файл

@ -184,9 +184,9 @@ class MailService {
);
$share->setInvitationSent(time());
$this->shareMapper->update($share);
$sentMails[] = $recipient->getId();
$sentMails[] = $recipient;
} catch (\Exception $e) {
$abortedMails[] = $recipient->getId();
$abortedMails[] = $recipient;
$this->logger->error('Error sending Mail to ' . json_encode($recipient));
}
}
@ -231,7 +231,7 @@ class MailService {
$recipient->getDisplayName()
);
} catch (\Exception $e) {
$this->logger->error('Error sending Mail to ' . $recipient->getId());
$this->logger->error('Error sending Mail to ' . json_encode($recipient));
}
}
}

Просмотреть файл

@ -82,13 +82,13 @@ export default {
const response = await this.$store.dispatch('shares/sendInvitation', { share })
if (response.data?.sentResult?.sentMails) {
response.data.sentResult.sentMails.forEach((item) => {
showSuccess(t('polls', 'Invitation sent to {emailAddress}', { emailAddress: item }))
showSuccess(t('polls', 'Invitation sent to {displayName} ({emailAddress})', { emailAddress: item.emailAddress, displayName: item.displayName }))
})
}
if (response.data?.sentResult?.abortedMails) {
response.data.sentResult.abortedMails.forEach((item) => {
console.error('Mail could not be sent!', { recipient: item })
showError(t('polls', 'Error sending invitation to {emailAddress}', { emailAddress: item }))
showError(t('polls', 'Error sending invitation to {displayName} ({emailAddress})', { emailAddress: item.emailAddress, displayName: item.displayName }))
})
}
},

Просмотреть файл

@ -91,13 +91,13 @@ export default {
const response = await this.$store.dispatch('shares/sendInvitation', { share })
if (response.data?.sentResult?.sentMails) {
response.data.sentResult.sentMails.forEach((item) => {
showSuccess(t('polls', 'Invitation sent to {emailAddress}', { emailAddress: item }))
showSuccess(t('polls', 'Invitation sent to {displayName} ({emailAddress})', { emailAddress: item.emailAddress, displayName: item.displayName }))
})
}
if (response.data?.sentResult?.abortedMails) {
response.data.sentResult.abortedMails.forEach((item) => {
console.error('Mail could not be sent!', { recipient: item })
showError(t('polls', 'Error sending invitation to {emailAddress}', { emailAddress: item }))
showError(t('polls', 'Error sending invitation to {displayName} ({emailAddress})', { emailAddress: item.emailAddress, displayName: item.displayName }))
})
}
},