MuleSoft · Email Connector
EMAIL:ATTACHMENT
Short answer
EMAIL:ATTACHMENT means an error occurred while trying to send an attachment. Check the attachment content and type that the Send operation receives.
VerifiedLast verified
01Error text
Error type: EMAIL:ATTACHMENT02Likely causes
- An error occurred during an attempt to send an attachment.
03How to fix it
- Log what the Send operation receives as attachments and check that each one has content and a content type.
- 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:ATTACHMENT.
04Official documentation
→Related errors
- EMAIL:SENDEMAIL:SEND means an exception occurred while trying to send an email. Read the SMTP debug output to see the server's reply.
- 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