I have a script that successfully extracts the body of an e-mail:
var msgBody = messages[m].getBody();
This message contains 650+ lines of information, and I would like to put each line of text in a different row in the same column (the way it would work if I were to paste it into cell H1 for instance. When I run this command:
listserveSheet.getRange("H1").setValues(msgBody)
It naturally puts ALL 650+ lines of information in that one cell instead of cells H1 through H652 (or whatever the last one would be for any given e-mail).
Any idea how to alter my variable to make it able to set the values the way I desire? I was thinking maybe loop through the variable and set each value separately. But I don't know how to pull a single line out of the variable each time through the loop.