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
エキスパート
回答済み 1年前
0

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

回答済み 1年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン