Multiline for tthe email BODY.

Hi All,

I am trying to send a sale report via email. The BODY should contain multilines similar to this:

~(example)
float price = 3.76
int CoinCounter: = 3
float sales = 0;
CanRemaining = 5;
sales = CoinCounter * price;
strcpy(SUBJECT,"Sales Report
");

// EMAIL BODY

BODY = "Sales: " + sales + "
"
+ "Coins: " + CoinCounter + "
"
+ "Cans Remaining: " + CanCounter;

How can I achieve that with Dynamic C?
Thanks!

the simplest way to do this is to construct the body in a buffer using sprint that way you can build up the text in the same way that you would use for printing it out normally:

e.g.

char BODY[1000];
int pos = 0;

pos = snprintf( BODY, "Sales %f
Coiins %d
", sales, coinis);

Regards,
Peter