This isn't a good idea.  It's not portable across OS's and it will almost certainly be incorrect when someone is using the defaults in smtp.ini:

[core] connect ip=84.244.165.152 port=43071 local_ip=:: local_port=25