Hi wysota,
Here is what I have been trying...
Qt Code:
  1. //Message to SMTP
  2. HELO there
  3. MAIL FROM: <xyz@gmail.com>
  4. RCPT TO: <abc@yahoo.com>
  5. DATA
  6. Content-Type: multipart/related; boundary=unique-boundary-1
  7. --unique-boundary-1
  8. Content-Type: text/plain; charset=ISO-8859-1
  9. Content-Transfer-Encoding: 7Bit
  10. Content-Disposition: attachment; filename=fileName
  11. MIME-Version: 1.0
  12. From: xyz@gmail.com
  13. To: abc@yahoo.com
  14. Subject: Hello
  15. How is going?
  16. .
  17. QUIT
To copy to clipboard, switch view to plain text mode 
Now i"m able to receive the mail but still there is some problem. The "Subject:" and "To: " part in the mail is empty. There is no information in the "Subject:" and "To:" line.

Is there anything I'm doing wrong????
Please help.