It is not from which component you send you emails, it is actually settings of your Yahoo or Hotmail account which decides which email to mark as spam.
Also do following:
- In CDO script set the email importance level to "High"
- Make sure "From" email address contains a valid email address. Usually address like
[email protected] or
[email protected] etc are marked as spam
- The Subject and Body of email should also contain some meaningful text.
Hope this helps