MuleSoft · Email Connector
EMAIL:EMAIL_NOT_FOUND
Short answer
EMAIL:EMAIL_NOT_FOUND means the email identified by emailId cannot be found in the mailbox folder. Check the ID and the folder, since the email may have been moved or deleted.
VerifiedLast verified
01Error text
Error type: EMAIL:EMAIL_NOT_FOUND02Likely causes
- The email identified by
emailIdcannot be found in a mailbox folder.
03How to fix it
- Log the
emailIdand the folder the failing operation uses. - Confirm the email is still in that folder.
- Turn on connector logging: in
log4j2.xmladd<AsyncLogger name="org.mule.extension.email" level="DEBUG" />. - For protocol detail, add
<email:property key="mail.debug" value="true" />to the IMAP or SMTP connection element. - Handle the failure with an error handler of type
EMAIL:EMAIL_NOT_FOUND.
04Official documentation
→Related errors
- EMAIL:ACCESSING_FOLDEREMAIL:ACCESSING_FOLDER means there was a problem accessing an email folder, or the folder does not exist. Check the folder name the operation uses against the mailbox.
- EMAIL:READ_EMAILEMAIL:READ_EMAIL means an error occurred while reading the content of an email. Use the JavaMail debug output to find the message that fails, and check the Jakarta Mail MIME properties if the message is malformed.
Test every fix in a non-production environment before you apply it to production. See how entries are verified.
More for MuleSoft work:Open MuleSoft jobsMuleSoft rates and salariesHire a senior MuleSoft developer