Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Body exceeded 1mb limit #427

Open
rafyzg opened this issue Jan 22, 2023 · 2 comments
Open

Body exceeded 1mb limit #427

rafyzg opened this issue Jan 22, 2023 · 2 comments

Comments

@rafyzg
Copy link
Contributor

rafyzg commented Jan 22, 2023

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.

@psugihara
Copy link
Collaborator

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.

@rafyzg
Copy link
Contributor Author

rafyzg commented Jan 22, 2023

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants