I am developing an application in which i have to send mail from application. The body and recipient of mail should not be editable. So i configured gmail step by step using this link.
Now the need of application is that, the FROM UserName and password is given by user. It can be of any type as :
abc@gmail.com,
abc@rediffmail.com
abc@yahoomail.com
The email should sent, what ever the user name and password entered by user. I searched about that and got that to send mail from yahoo id application should configure on yahoo smtp server.
But what if user enter other mail id. Is there a common method by which application can send mail? For that what steps i have to perform.