sofn-xyz / mailing

Build, test, send emails with React
https://www.mailing.run
MIT License
3.6k stars 74 forks source link

Body exceeded 1mb limit #427

Open rafyzg opened 1 year ago

rafyzg commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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

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