Cognito verification message new line from console

0

When changing the default message and adding new lines from console, all the text appears in a single line. Tried adding /n and <br> tags with no luck. Building a Lambda trigger seems overkill. Any options?

1 Risposta
-1

Hi,

From the question I understand that you are trying to change the default Cognito message and add new lines but you are not able to.

With email messages you can customize the message with HTML. For example you could customize your message to the following.

<!DOCTYPE html> <html> <head> </head> <body> <br><b>Verification Message</b><br> <p>Welcome</p> <br><b>Your verification code is {####}. </b><br> </body> </html>

This would make the message have spaces such as the following.

Verification Message

Welcome

Your verification code is XXXXXX.

If you are having issues with editing the message Cognito is sending I would recommend creating a case with AWS support and an engineer will be able to assist in troubleshooting.

I hope you have a great rest of your day.

AWS
TECNICO DI SUPPORTO
con risposta 2 anni fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande