All perfect praise be to Allaah, The Lord of the Worlds. I testify that there is none worthy of worship except Allaah, and that Muhammad, sallallaahu ‘alayhi wa sallam, is His Slave and Messenger.
We ask Allaah to grant us and you well being and protection from all afflictions and to guard us and you against trials, the open and secret thereof. Hearts are between two of the fingers of Allaah The Almighty and He turns them as He wills. We advise you to resort to Him and supplicate Him earnestly to bless you with guidance, piety, chastity and independence of means, and protect you from different causes of temptations.
You should know that one of the greatest means of salvation is to be truthful with the Lord of the earth and heaven. Allaah The Almighty Says (what means): {if they had been true to Allaah, it would have been better for them.}[Quran 47:21]
Indeed, what happened to you is the best proof of the danger of entering into chat rooms. For more benefit please, refer to Fataawa 85179 and 84874.
There is absolutely no doubt that you have been caught in the trap of the devil. He had already confirmed through you his assumption and you followed him in what he wants. So, seek refuge in Allaah The Almighty from his evil. Allaah Says (what means): {And if there comes to you from Satan an evil suggestion, then seek refuge in Allaah. Indeed, He is the Hearing, the Knowing.}[Quran 41:36]
As for saying that you like that young man so much, that you think of him day and night, that you think you would not stop contacting him, and the like, all of such things are just enticements of the devil and a justification to the bad things you are doing. Rather, your being married, fearing hypocrisy or fearing the punishment of Allaah, your teaching Muslims good knowledge and being a role model for others should really make you repent from such sin. You should hasten to repent for death may come when it is least expected and then you will meet your Lord on a bad end. So, it is incumbent upon you to sever your relationship with that young man entirely, remove all means of communication with him and remove his name or email from your contacts list, and change your address to be on the safe side, otherwise, you will get a regretful end.
As for saying that you do not know how could all of this happen? Why did you meet this guy? What is the wisdom behind all this? The answer is the saying of Allaah The Almighty (which means): {Say, "It is from yourselves."}[Quran 3:165]
The Muslim is indeed exposed to afflictions, and the successful is the one who rejects them and not let his heart love them or have comfort in them. Huthayfah said: "I heard the Messenger of Allaah, sallallaahu ‘alayhi wa sallam, saying, “Hearts are exposed to trials one after the other. Any heart that succumbs to them is stained with a black spot, and any heart that resists them becomes pure white, until all hearts are of one of these two types. The white heart is intensely white and will not be harmed by any trial so long as heaven and earth remain, and the black heart is intensely black and does not recognize good or forbid evil, except what suits its own whims and desires." [Muslim]
Finally, it is not necessary that what have happened to you is a form of punishment; rather it may be a kind of trial. As for the treatment of falling in love, kindly refer to Fatwa 84544.
Allaah Knows best.