java - how to link a the contact form of my website to my mail using javamail -


hi have contact form in website field name, user email ,user password ,content , submit button. if give submit button should mail in inbox email , content. have searched many article in every article getting admin mail , admin password need mail website user mail id

you should reconsider whether best approach problem.

to use javamail send message based on information in web form, you're going have ask user configuration information needed access mail server - host name, port name, ssl or not, user name, , importantly password. users might not know information, , might not willing give email password.

even if got information, might not able access user's email server if you're not on user's network.

if want user send message, use mailto: link in web page email address. user use own mail program, configured, send message. although might not work if user using web mail user interface.

why need user send mail directly own account?


Comments