Skip to Content
0
Former Member
Oct 20, 2005 at 07:42 AM

ClassCastException at setToList of ISendMailItem Object

13 Views

Hello,

I am using the ISendMailService and than create an instance of ISendMailItem in order to send an email.

the ISendMailItem has a setToList method which accepts an object which extends the interface list.

The problem is that no matter which object I pass it which implements this interface (for example Vector) I receive ClassCastException. Can anyone please show me a working example using this method?

Roy