in reply to sending email with plaintext and HTML

Well it looks like you have a large block of quoted text in a void context that you don't do anything with.

You should add the text to the message using the msg parameter of the Part() method or use the SendEnc() method to add it separately.

UPDATE: Okay, I'm either going blind or stupid but I didn't see the here document part of that when I made the reply. The closing token of the here document needs to be flush to the left with no spaces before or after. Personally I would lose the asterisks as well but if it works for you ...

/J\