fix sendMessage method

- invalide usage of parameters
- set as default fromName and from members