From last few months I'm trying to create my own WEBMAIL system from scratch.
I'm using IMAP, POP3 with php/mysql coding but failed to create.

Somebody Help me to create WEBMAIL system from scratch.

There are tons of open source webmail systems. May I ask why you're trying to re-invent the wheel?

If it's for learning purposes, you can always look at these excellent open source options like http://www.squirrelmail.org/, http://www.hastymail.org/, http://www.postaciwebmail.org/ etc

open source webmail systems are not easy to edit. If I will create my own webmail system then I can control and manage or add new functionality to webmail system.
So I am trying to create my own webmail system.

There still is no point in re-inventing the wheel... just use an open source, be a man and spend time looking at the code, and then work on it..

From last few months I'm trying to create my own WEBMAIL system from scratch.
I'm using IMAP, POP3 with php/mysql coding but failed to create.

Somebody Help me to create WEBMAIL system from scratch.

maybe before i answer what exactly do u want webmail to be doing?