Signed-off-by: dartcafe <github@dartcafe.de>
This commit is contained in:
Родитель
b250e4934c
Коммит
fdd1a4cd67
|
@ -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 }))
|
||||
})
|
||||
}
|
||||
},
|
||||
|
|
Загрузка…
Ссылка в новой задаче