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

Shoot. I'll give it a shot. I've always been far too loquacious for my own good.

How does one pass text (as in a sentence or two, like I'm attempting to ask my question using) to a function? I have an emailing function which works perfectly. The problem is it only sends the email subject and body that I have permanently typed into the function. I'm looking for more dynamic function.

For example, I'd like to be able to have my sketch call up the email function like this:

If (x == true) {
sendEmail("x is true.", "Take my word for it bro, the rabbit hole is pretty deep!");
}

instead of just:

if...(){
sendEmail();
}

Where the first string is the subject of the email and the second string is the body. These can of course be variables that I define elsewhere. ie msgSubject1 and msgBody1 and so on. I've no idea how to do this.

Currently all I can do (I think it would work) is have an integer variable passed to the function and include if statements in the function. If var = 1 {then relist the code for sending the email over and over with different message text for each variable value I define; portion or all if the SMTP makes me.}

That's quite a waste of space. I'm sure this is possible. Am I being unclear at all? Please tell me if that isn't understandable.

Thanks fellas!
Joey

Oh yea, so it turns out I can't has to question just a couple sentences.