Yahoo has very strict rules about how emails arrive. It is not uncommon for emails to be rejected by them.

The more important issue though is ... *what* error message are you getting?