Deco is forgetting about:
- Checking your own status
- Checking if the Messenger object is available
- Checking the status of the contact
- Testing if you can send a message at all
Very important things you also must do...
And instead of doing the long iterating loop, you can use the GetContact function.
note: a Yahoo contact also has a prefix to its email.