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?

已提问 2 年前954 查看次数
1 回答
-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
支持工程师
已回答 2 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则