I sent an angry e-mail to my interviewers about a conflict at my home institution. Could this affect my application? I applied to a foreign university. I was interviewed and now I am waiting for the result.

I had also applied to another research opportunity abroad, which is organized by my current department head. I was very hopeful that I would be selected for this opportunity because I am the first-ranking student and my English is very good. I spoke respectfully with the head professor about it on several occasions, but it seemed like he was making excuses and was not fairly considering me.

I recently found out that my classmate was selected for the opportunity abroad. He had performed much worse than me on classes we had taken together, and his English is very weak. I lost control and told the head of the department where there is a research opportunity that I would report this obvious injustice to the leading mathematicians at the university that had interviewed me recently. I did indeed e-mail my interviewers.

Now that I have calmed down, I realize that I should not have emailed my interviewers in this manner. Could it affect the outcome of my application?

Appendix: Thank you for your suggestions and advice. In fact, I have realized that I should always remain academically professional. I also sent a follow-up email to my interviewer and expressed my regret at my previous email.

Appendix 2: Now that I am more calm, I realize that my act was childish. I was not the employer to decide whom to hire. I emailed the head professor and and the one at the institution where there is a research opportunity expressing my regret. But now I feel like I need to try even much more than before to become successful. Good luck specially to me
I had some troubles following your question, but if I understood correctly then I would assume that:


The professor interviewing you is highly confused right now. They seem to have literally nothing to do with your university, the program, you (other than having interviewed you recently), and the person that you accused of being unjust - and yet they are drawn into a conflict that they have no stakes in nor responsibility for.
You may indeed have lowered your chances of getting accepted considerably. In the best case your email would be seen as odd. In the worst case it would be seen as grossly unprofessional, painting you as a trouble maker who will randomly lash out whenever something happens that you consider unjust. I have seen students like that, and I know of no professor / admission committee that wants to bother with this kind of drama.



  However, now that I have calmed down I have realized that I should not have let even injustices affect me and it was unnecessary to email my interviewer. 


I think your reflection should go deeper than that. It is true that part of being a professional is also being able to absorb smaller perceived unjustices like that (empathy and an ability to accept that grades aren't everything helps here), but I also can't help but wonder what you were trying to achieve with this email in the first place. To me (and note that I am only going by your short recap) this sounds rather vindictive, serving no other purpose than to get back at the person not recommending you. If that is indeed the case, you should take a good hard look at your actions in this case and learn from that for the future.