According to your class, your example at the top should be setTextPart and setHTMLPart.
Inside your class, 'web' is not defined, nor assigned.
It's a great start for a class. I would add a setStyle too. This way it's not hard-coded. You could still initiate it on 'new', but at least we could override it (like you do with the sender).
A couple of small errors:
According to your class, your example at the top should be setTextPart and setHTMLPart.
Inside your class, 'web' is not defined, nor assigned.
It's a great start for a class. I would add a setStyle too. This way it's not hard-coded. You could still initiate it on 'new', but at least we could override it (like you do with the sender).
Tx for this.