Tools
Dynamic Content inc Java
Using JavaMail | Using JavaMail |
|
|
|
Using Java MailYour Java account can be used to send emails using the JavaMail API. The provides fairly simple standard methods to send and receive emails, handle attachments and other mail related activities. You can find the API and documention on the Sun site at http://www.java.sun.com. Note: Spamming in any form is not acceptable, and is in violation of the terms and conditions of your Java Account. ExamplesHere are examples of pages sending test mesages. For the JSP page for sending mail click here and for the servlet version click here. The source code for this type of function can be found on many places on the web, we recommend E-Mailing Through Java You will need to include the following jar files in your WEB-INF/lib directory to use JavaMail. mail.jar (both of these are available from the Sun site.) Example JSP
The example below shows you how to firstly connect to the local SMTP
server and then create the JavaMail message and finally send the message
through this SMTP connection. Change the parameters to suit your
needs. |
| < Prev | Next > |
|---|
| Hosting |
| Domains |
| Servers |
| Connectivity |
| SSL Offer |
|
||





