Question

I understand that I can send an email through Outlook using javascript and with mailto tag also. mailto tag will also open the default mailing client which will install on PC (did not to use it that all), however in my current situation I did not want to use it.

I want to create a webservice in Java or .Net. I can call the same web service with javascript or ajax that can dispatch an e-mail via SMTP.

Please let me know how to create a web service. Any idea will be helpful. Thanks.

Useful link

Était-ce utile?

La solution

Because your are using an applet already it would be easier just to do the e-mail method in java and call via JavaScript (this may throw unsigned applet warning at start). Create a method in java that will send the message via smtp

Helpful links: http://docs.oracle.com/javase/tutorial/deployment/applet/invokingAppletMethodsFromJavaScript.html

Sending Email via gmail smtp server in JAVA

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top