Sending message text to an email function. [Probably same for SMS]

Post your sendmail function. Without seeing it though, it looks like you need to adapt it to take two parameters:

void SendMail(char *Subject,char *Body)

And use those params appropriately in the body instead of your hard coded versions