We have a large CSV >11MB to be attached to an...
# suitescript
n
We have a large CSV >11MB to be attached to an email which gets sent through email.send. We've hit the 10MB limit when we try to load the file into the script and the script fails. It does attach & send if we do an email send through the UI. Any pointers on a workaround?
u
perhaps you could iterate the lines and chunk the data up. maybe if your file is ~15MB you send 3 files of ~5MB
n
Yep. That was one option. Problem is these emails are injested into the recipients’ own billing systems. They are requesting a single file
w
The 10MB limit is only for scripting for some reason. You'll have to send manually.
1
a
umm email attachment sizes can be an issue on the email servers too, I think 15MB is the limit in gmail... or was at some point in the not too distant past. just checked its 25MB now.
1
n
Ultimately it is a scalability problem for them. I might see if they will consider a secure link to the document.
e
Send via bulk? Not as reliable though
Realized this may only affect recipients limit, not file size. Is the file already saved to the cabinet?
n
Yes we create the file in the cabinet form a saved search
e
according to the documentation, even sendBulk has this limitation
An individual attachment must not exceed 10MB and the total message size must be 15MB or less.
n
Thanks.