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 réponses
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
EXPERT
répondu il y a 10 mois
0

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

répondu il y a 10 mois

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions