Cheap UK Web Hosting Company, Cheap Web Hosting UK, Low Cost Webhosting Space, Low Cost Web Site Hosting UK, Domain Hosting UK and Domain Name Registration

Cheap web hosting uk and domain name registration services from Webconexion Internet Solutions LTD
Tel: 0208 144 2211      Fax: 0871 661 9456      Email: sales@webconexion.net

  Connecting to MySQL using JSP and JDBC


 
 

Sending E-Mail using JavaMail in 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 in red to suit your needs.

<%@ page import="java.util.*, javax.mail.*, javax.mail.internet.*" %>

<%
Properties props = new Properties();
props.put("mail.smtp.host", "localhost");
Session s = Session.getInstance(props,null);

InternetAddress from = new InternetAddress("ENTER_SENDER_EMAIL_ADDRESS");
InternetAddress to = new InternetAddress("ENTER_RECIPIENT_EMAIL_ADDRESS");

MimeMessage message = new MimeMessage(s);
message.setFrom(from);
message.addRecipient(Message.RecipientType.TO, to);

message.setSubject("ENTER_SUBJECT");
message.setText("ENTER_MESSAGE");
Transport.send(message);
%>


If you have a question that you cannot find the answer to here, please email support@webconexion.net

Technical Support

 
Get online now with your choice of UK or International domain name.

 UK domains £3.25 p/a
 International domains £10 p/a
 Web forwarding services
 E-mail forwarding services
 POP/IMAP E-Mail accounts NEW
 Spam E-Mail Protection NEW
 DNS Configuration NEW
 Change nameservers
 Upgrade to web hosting
 No release fees

The domain control panel (DCP) is provided as standard with all parked domain accounts.

 Map multiple domains to your web hosting account for the one time fee of £29.99 per domain!

 Additional bandwidth usage on your web hosting account now only 2p per MB per month!

 HTML only web hosting accounts now start from just £29.99 p/a!

 Add Frontpage Extensions to your HTML only web hosting account for the one time fee of £14.99.

 Transfer your .co.uk domain name to Webconexion for FREE with the option to upgrade to one of our web hosting accounts!

Latest News | Related News | Contact Us | Terms & Conditions | Knowledgebase | Related Resources | System Status | Add Resource
Copyright © 2008 - Webconexion Internet Solutions LTD