'Send on behalf' funcitonality will not work from an Applicaiton as far I understand. 'From' & 'Sender' both are same so not sure what you trying to say here.
What type of application do you use? does your application account has mailbox on your exchange server? where is application server located inside your environment?