"To" address...and user entered "[email protected]" and suppose my from id is "[email protected]" then i have to use which smtp server? server for input email address or server for mycomp's address?
You would use the smtp server for "[email protected]", you use the smtp server of the senders address.