Publish emails with attachments having size greater than 256kb

0

We have .net 6 application from where we are publishing email/text notification using masstransit and subscribing in another application from same solution. Publishing email with attachment is working fine if file size is less than 256kb though it's failing to publish email if attachment size exceeds 256kb size limit. The question here is how can i publish such emails with attachments exactly?

Please find the exception i am getting while publishing email with big size attachement *Amazon.SimpleNotificationService.Model.InvalidParameterException: Invalid parameter: Message too long ---> Amazon.Runtime.Internal.HttpErrorResponseException: Exception of type 'Amazon.Runtime.Internal.HttpErrorResponseException' was thrown. at Amazon.Runtime.HttpWebRequestMessage.GetResponseAsync(CancellationToken cancellationToken) *

2 回答
0

Hi, there are specific libraries to have attachments up to 2 GB: can you use 1 of those languages for those big messages?

See https://docs.aws.amazon.com/sns/latest/dg/large-message-payloads.html

See also "Message publishing and batching" in https://aws.amazon.com/sns/features/

profile pictureAWS
专家
已回答 10 个月前
0

Thank you for the quick response though unfortunately we do not use java or python.

已回答 10 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则