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 Answer
-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
SUPPORT ENGINEER
answered 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions