Maybe some of the guys over here want to help you.
I will let you with an scheme to make this.
1.- Mirc can run CMD and command lines.
2.- There is software that can send email through command lines:
http://www.sendmailfromcommandline.com/3.- make a script to "capture" the word/text/msg in IRC and use it in a command line with that program.
This is just an scheme.
Hope it help to someone