80
Views
8
Comments
Error while sending Email with multiple attachments
Application Type
Traditional Web
Service Studio Version
11.51.5 (Build 57782)

Hi All,

Traditional Web App

I have more than 30 attachment that I want to send as an attachment in the email. But getting below error.

I am also checking that the size of all the attachments should be less than 20 MB otherwise I am escaping the attachments in the email. Can anyone have any idea what possibly went wrong.

2020-09-01 10-42-42
Stefano Valente

Its just a lucky guess but could it be your request is too long because of the many base64 attributes (attachments)?

2021-05-07 17-15-20
R J

Thanks Stefano. Do you have any idea how to get rid of form this kind of errors.

2021-04-17 09-53-48
José Gonçalves

Whether the number files exceed its limit or the total size of the files exceeded it.

You can try to use a zip component to send the files.


2021-05-07 17-15-20
R J

Yes I am checking it if it is less than 20 MB then triggered email I am not attaching the files. I didn't tried with the Zipping the file and send it in the email that could be the last option I will try. 

But for now I don't want it to be in zip as attachments can also be go beyond 50 or more that is up to the user.

2020-09-01 10-42-42
Stefano Valente

I think we need to wait for a MVP like @Nordin Ahdi to get confirmation.

If so, i think the only way is to have Outsystems increase it, or if you are on premise, you can do it yourself.


2021-08-12 11-00-27
Nordin Ahdi
 
MVP

Hi guys,

Sorry for the late reply.

Although I wouldn't suggest to add that amount of attachments to an email, but instead I would at least add the files to a zip-archive in order to compress the size like Jose suggested.

Nevertheless, I believe the error "413: Request Entity Too Large" indicates that the request length exceeds the limit allowed by the application server. 

These request limits can be increased by adjusting the maxRequestLength and maxAllowedContentLength parameters of the web.config. The same configuration is often needed to increase the file upload size limit.

Try following these instructions using the Factory Configuration asset you can download from the Forge.

Regards,

Nordin

2020-09-01 10-42-42
Stefano Valente

Thank you for confirming my suspicion. I was not fully convinced so that's why i asked for your input.

2021-05-07 17-15-20
R J

Thanks a lot @Nordin Ahdi and @Stefano Valente 

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.