Skip to content
Advertisement

Python boto3 SNS email formatting (each string in new line)

How to print each string in a new line in an email using AWS SNS service.

If I print a message in Python output all strings is in new lines:

JavaScript

but in an email it is all in one line:

JavaScript
JavaScript

Advertisement

Answer

replace 'n' by ".n" and after that in an email – each string is in a new line.

User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement