sofn-xyz/mailing

Body exceeded 1mb limit

rafyzg opened this issue · 2 comments

Is your feature request related to a problem? Please describe.
I am trying to send a mail with attachment of file size larger than 1mb
I get the following message:
Body exceeded 1mb limit

As you see in the link attached this is an issue with the default size limit in next
I am not sure if currently I have an option to increase the size limit.

Describe the solution you'd like
Ability to increase the body size limit.
Two options:

  1. increase the size limit for sendMail route (I could push a fix if necessary)
  2. next.config.js file where you could extend default settings of next..?

Describe alternatives you've considered
Currently I don't have other ones, I am open for ideas.

I'm up for increasing the size limit and would be happy to review a PR. Thank you for making the issue! That said, are you trying to use sendMail via the REST API? As far as I know, that does not support attachments.

It does support.
https://www.mailing.run/docs/sending-email#common-componentmail-options

I will submit a PR in couple of days.
Thanks.