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 年前檢視次數 953 次
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 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南