Problem with script

I am looking for a script that send me a mail with the list of IP interfaces and especially the addreses given by my isp dynamically when i’m connected with the pppoe.
thx

Here is one solution:
http://forum.mikrotik.com/t/wan-ip-email-sending-script/48409/1