edoc Knowledge Base
Breadcrumbs

E-mails are no longer sent by edoc invoice ("Cannot send message without a sender address")

Component

edoc invoice

Version

23.2.8.6

Created on

Last modified on

No Workflow Applied

Review status

No Workflow Applied

KB article number

435421221

Summary

You notice that e-mails from edoc invoice are no longer being sent. In edoc workplace under Failed jobs (Failed jobs) you will find the SendMailJob task in the list. When you open the details, the following error message (excerpt) is displayed:

“Swift TransportException: Cannot send message without a sender address in /var/www/vendor/swiftmailer/lib/classes/Swift/Transport/AbstraetSmtpTransport.php:195\nStack
ce:\n#0

Under Payload (Exception error) in the error message, search for "Absender E_Mail” (sender of the e-mail). The entry is normally followed by an e-mail address. However, the e-mail address is missing.

Important requirements

You have administrative permissions in edoc invoice and Keycloak.

Solution

To resolve the problem, proceed as follows:

Step 1: The user or the specified e-mail address does not exist in Keycloak

  1. Open Users in Keycloak to display the user data.

  2. Search for the user and check whether the user exists in Keycloak.

  3. Check whether a valid email address has been entered for the user under Email.

If the data is incomplete or incorrect, you must correct and clean up the data.


Step 2: Settings for sending e-mails were not specified in edoc invoice or are incorrect

  1. In edoc invoice open Settings > Workflow settings(Workflow settings).

  2. Check under Mail (sender e-mail) whether a correct e-mail address has been entered and whether the user's password is correct.

  3. If necessary, enter the correct data. If all the data in the workflow settings is missing (host, user, password, sender e-mail and sender name), enter the correct data.

  4. Click Save in the ribbon to permanently save the changed data in the workflow settings.

  5. Click on Test connection to check whether the host can be reached and whether the specified user can log in to the host with the specified password.

  6. If the host cannot be reached, fix the issue.