I can do that, except, getting user IP. Methatraider don't have functions, for getting IP information.
And to realize e-mail functionality in methatraider, email settings should be entered manually by user in settings window. It can't be done programm way. This mean, user wich used your expert should allow to send mail, and should enter mail settings manually.
File writing: If you have MQ4 source code, I can simple insert few strings in code, If you don't have mq4, only ex4, I can make copy expert, wich will monitor opened orders, and write information in file, after new order will open.