I need to iterate through each row, and send an email using string.format method. I already know how to do this part - but I’m having a hard time figuring out how to pull the text from the body column and formatting appropriately for the email. I cannot put the body in a .txt file because it is coming into the config file from another source, and may be different each time. For example, it should look like this in the email:
Dear {0},
Thank you for your order {1}, We hope you enjoy it.
Please let us know if you have any questions or concerns.
Thanks! This works, but was hoping to not use a .txt file with the template. Rather - the template would be pulled directly from each row. Just not sure how to get it formatted properly (in terms of paragraph spacing).