Programming Tutorials Browser Tutorials Articles Struts Tutorials Hibernate Tutorials

  Tutorial: Send Mail Bean

In our application we have developed mailer bean that sends welcome email when a new user is registered to the system.

Tutorial Details:

Mail Bean also used when user asks for the forgotten password.



In this article we use Java Mail API to send emails. This is standard part of J2EE.You can download this API from http://java.sun.com/products/javamail/.If you download this API ,you will get mail.jar file .Put this file in your tomcat's lib directory.



Now we write java source code to send a mail. Very first we imports some java packages which allow you to use methods.


 

Rate Tutorial:
http://www.roseindia.net/struts/hibernate-spring/send-mail.shtml

Read Tutorial at: Click here to view the tutorial

Rate Tutorial:
Send Mail Bean

View Tutorial:
Send Mail Bean

Related Tutorials:

Java Q&A - Java Still Open
Java Q&A - Java Still Open
 
Direct network traffic of EJBs - JavaWorld November 1999
Direct network traffic of EJBs - JavaWorld November 1999
 
Advanced form processing using JSP
This article examines the processing of a user registration form using JSP and JavaBeans while implementing the Memento design pattern.
 
Make a sweep with clean beans - JavaWorld November 1999
Make a sweep with clean beans - JavaWorld November 1999
 
Sockets programming in Java: A tutorial - JavaWorld December 1996
Sockets programming in Java: A tutorial - JavaWorld December 1996
 
Introduction to the Java Mail API
Introduction to the Java Mail API
 
JavaMail quick start
JavaMail quick start
 
Create email-based apps with JAMES
Create email-based apps with JAMES
 
Test email components in your software
Test email components in your software
 
Aspirin - embeddable java smtp server
Aspirin - embeddable java smtp server What is it? Aspirin is an embeddable send-only SMTP server. Why would I want that? The JavaMail API doesn't really let you send mail. And that's just annoying. Developers shouldn't have to jump through hoops t
 
Very interesting tutorial
Introducing the JavaMail API The JavaMail API is an optional package (standard extension) for reading, composing, and sending electronic messages. You use the package to create Mail User Agent (MUA) type programs, similar to Eudora, Pine, and Microsoft O
 
g4j - GMail API for Java
GMailer API for Java (g4j) is set of API that allows Java programmer to communicate to GMail. With G4J programmers can made Java based application that based on huge storage of GMail.
 
HtmlCalendar bean ver. 1.4
Java bean allows you to generate Calendar for your HTML pages.
 
JSP Format Bean Library
JSP Format Bean Library is a collection of beans which support Java Server Pages(JSP). JSP allows the HTML developer to embed Java into a page. There are a number of common operations in a scripted page that would be tedious or complex without additional
 
Getting Started with Java Message Service (JMS)
The Java Message Service (JMS) is designed to allow Java applications to use enterprise messaging systems. It makes it easy to develop enterprise applications that asynchronously send and receive business data and events. Learn how to implement it for you
 
fetchExc - fetches mail with webDAV from Exchange 2000/2003 servers
FethExc is java utilily which retrieves mail from your MS Exchange (2000/2003) inbox and forwards it to SMTP server of your choice. FetchExc uses webDAV (OWA) to retrieve mail either over http or https.
 
Introduction To Enterprise Java Bean(EJB). WebLogic 6.0 Tutorial.
Introduction To Enterprise Java Bean(EJB). WebLogic 6.0 Tutorial. Welcome to EJB Section (Learn to Develop World Class Applications with Enterprise Java Beans) (Online WebLogic 6.0 Tutorial) Introduction To Enterprise Java Bean(EJB) Enterprise
 
Client Side Address Validation in Struts
Client Side Address Validation in Struts Client Side Address Validation in Struts In this lesson we will create JSP page for entering the address and use the functionality provided by Validator Framework to validate the user data on the browser.
 
The Struts ActionForm Class
The Struts ActionForm Class The ActionForm Class In this lesson you will learn about the ActionForm in detail. I will show you a good example of ActionForm. This example will help you understand Struts in detail. We will create user interface to
 
Web Hosting Guide. What is Web Hosting Plan?
Web Hosting Guide. What is Web Hosting Plan? What is Web Hosting Plan? Web hosting plan is the different plans provided by Hosting Companies for hosting your web site. Web hosting plans include the storage limit, bandwidth, access to server
 
Site navigation
 

 

Send your comments, Suggestions or Queries regarding this site at roseindia_net@yahoo.com.

Copyright © 2006. All rights reserved.