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?

preguntada hace 2 años953 visualizaciones
1 Respuesta
-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
INGENIERO DE SOPORTE
respondido hace 2 años

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas