Programming Tutorials Browser Tutorials Articles Struts Tutorials Hibernate Tutorials

Search: 

  Tutorial: 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

Tutorial Details:

Aspirin is good for that kind of headache. Just add Aspirin to your app and you'll be able to send mail from any computer with a net connection regardless of their current mail server configuration.

How do I use it?
Using Asprin is pretty simple. All you have to do is generate a standard javax.mail.internet.MimeMessage and then add it to the MailQue by passing it to org.masukomi.aspirin.core.MailQue.queMail(MimeMessage message). If you don't want to bother with manually creating the Session and Properties objects needed to generate a MimeMessage just call org.masukomi.aspirin.core.SimpleMimeMessageGenerator.getNewMimeMessage() and it will return you a brand new MimeMessage object ready to be filled with your e-mail.

That's it. Your Mail will be sent.

Want to know if it went through? That's slightly more work.

First you implement org.masukomi.aspirin.core.MailWatcher (see SimpleMailWatcherImpl for an example).

Then you call MailQue.addWatcher(MailWatcher watcher) and give it your watcher. Whenever a mail succeeds or fails it will call the appropriate method in MailWatcher. The MailAddress is the address of the recipient it succeded or failed with. Currently the deliverySuccess method is called once for each recipient.

public void deliverySuccess(MimeMessage message, MailAddress recipient);
public void deliveryFailure(MimeMessage message, MailAddress recipient);


 

Read Tutorial at: Click here to view the tutorial

Rate Tutorial:
Aspirin - embeddable java smtp server

View Tutorial:
Aspirin - embeddable java smtp server

Related Tutorials:

Displaying 1 - 50 of about 3093 Related Tutorials.

Web Server
about Java language then a web server is a server that is used to support the web... contain the HTTP server (to access and store the web pages and files), SMTP... the servers like HTTP server, SMTP server, FTP server and many more on separate machines
 
Read page from Web server
Java: Read page from Web server Java NotesRead page from Web server /* This program was taken from the Java Tutorial http://java.sun.com/docs/books/tutorial/networking/urls
 
Open Source E-mail Server
Java Enterprise System server software open-source, John Loiacono, Sun's executive... a SMTP server. It is very simple to configure (only a few settings... (no additional databases needed). * Sends mail through a SMTP server (chosen from
 
EasyEclipse Server Java
EasyEclipse Server Java EasyEclipse Server Java...;   EasyEclipse Server Java For development of server-side... (Tomcat, JBoss, WebLogic), develop on some server-side frameworks (Struts, Java
 
Chat Server
Chat Server Chat Server   ...;            Chat server..., server application (which runs on server side) and client application (which runs
 
Multicast Server in Java
Multicast Server in Java,Multicast UDP Server in Java - UDP Protocol in Java Multicast Server in Java... by the multicast server and provides the functionality of multicast server through program
 
What is Java Server Faces?
standard framework, developed through Java Community Process (JCP), that makes it easy to build user interfaces for java web applications  by assembling... applications based on Java technologies. Here are some of benefits
 
Java server Faces Books
Java server Faces Books Java server Faces...;     Java server Faces...; Core Java server Faces This is the support web
 
UDP Server in Java
UDP Server in Java,User Datagram Protocol Server,Java UDP Network Protocol UDP Server in Java   ... you information relating to all technicalities of UDP server. This section
 
Introduction to the JSP Java Server Pages
JSP Tutorial - Java Server Pages Tutorials JSP... with working source code. Introduction to JSP Java Server Pages... Java Server Pages Technology JavaServer Pages (JSP) technology is the Java
 
Java Server Faces (JSF) Tutorial
JSF Tutorial,JSF Tutorials,Java Server Face,Java Server Faces,Online JSF Tutorial JSF - Java Server Faces Tutorials...;  Complete Java Server Faces (JSF) Tutorial - JSF Tutorials
 
JSF - Java Server Faces Tutorials
JSF Tutorial,JSF Tutorials,Java Server Face,Java Server Faces,Online JSF Tutorial JSF - Java Server Faces Tutorials...;  Complete Java Server Faces (JSF) Tutorial - JSF Tutorials
 
Tomcat Web Server
Tomcat Web Server Tomcat Web Server...; Introduction to the Tomcat web server Tomcat is an open source web server developed by Apache Group. Apache Tomcat is the servlet container
 
Java Server Faces (JSF)
Java Server Faces (JSF) Java Server Faces (JSF... Server pages. Java JSP... to build rapid data-driven Java web applications. To make efficient
 
Description of GlassFish Application Server
Description of GlassFish Application Server Description of GlassFish Application Server     ...; GlassFish is a free, open source application server that implements
 
Receiving and sending a request to UDP server in Java
Receiving and Sending a Request to UDP Server in Java - Online Java Tutorials Receiving and sending a request to UDP server in Java          
 
Open Source Application Server
development by releasing code for the popular Java System Application Server Platform Edition 9.0 and Java System Enterprise Server Bus, which is based on the Java...) under the Open Source licence. The XML Application Server is written in Java
 
Tutorial - Sun Java System Application Server Platform Edition
sun java system application server platform,sun java system application server platform 9 Sun Java System Application Server... by it. The Sun Java System Application Server Platform Edition 9 is the latest
 
Installing Sun Java System Application Server Platform Edition
Installing Sun Java System Application Server Platform Edition Installing Sun Java System Application Server Platform Edition...;  In this section we will learn how to install Sun Java System
 
Apache Geronimo Application server Tutorial
\Geronimo\> java –jar bin/server.jar For a successful server start you can... JavaEE( or J2EE, old name) application server. It is so much capable that it can... JavaEE application server which uses Industry respected and Industry proven
 
Introduction to Apache Geronimo application Server
. Apache Geronimo server is fully certified Java EE 5 application used to deploy... are the benefits of Apache Geronimo application server: Fully Java JEE 5... Server            
 
Tutorials - Java Server Pages Technology
JSP Tutorials - Java Server Pages Technology Tutorial Tutorials - Java Server Pages Technology    ... technology and platform in this regard. Java's Role for Server
 
Tutorials - Java Server Pages Technology
JSP Tutorials - Java Server Pages Technology Tutorial Tutorials - Java Server Pages Technology    ... technology and platform in this regard. Java's Role for Server
 
IBM WebSphere Application Server Training
IBM WebSphere Application Server Training IBM WebSphere Application Server Training     ... Application Server is the foundation of the IBM WebSphere software platform
 
Downloading and Installing Apache Geronimo Application Server
v2.1 is Java EE 5 Certified application server and it requires J2SE 1.5 or above... Application Server Downloading and Installing Apache Geronimo Application Server         
 
Creating Web application on tomcat server
how to create first web application using Servlet on the tomcat server. ... variable by using the following steps.   Now create a java source file....  Compile the java source file, put the compiled file (.class file
 
Downloading and Viewing html source of a page i.e. running on the server
Java Source Viewer,View Source of HTML File Using Java Program,View Source Example in Java Downloading and Viewing html source of a page i.e. running on the server      
 
Java FTP Library
Java FTP Library  Java FTP Library ...; The Java Ftp Library Let's imagine a situation where we want to write a pure Java application that must download files from
 
Open Source E-mail
-source server software Sun is considering making its Java Enterprise System... as the mailstore and sends mail through a SMTP server. It is very simple to configure... through a SMTP server (chosen from the login information of your users). Including
 
Application Server
Application Server Application Server...; WAST   WAST (Web Application Server Toolkit) is a framework for developing web application server adapters. It contains core and UI
 
Snooping the server
Snooping the server Snooping the server... information about its server.  Firstly we will create a class in which... of the server you are using use the method getServerName() of the ServletRequest interface
 
VoIP Server
VoIP Server VoIP Server   ...; The Server for Gamers Teamspeak is one of the best kept secrets... client and server software and best of all Teamspeak is free of charge to non
 
Downloading and Installing WebLogic server 6.0
Downloading and Installing WebLogic server 6.0 Downloading and Installing WebLogic server 6.0... how to Install Web Logic 6.1 Server on windows machine. You can
 
SQL Server Training
SQL Server Training SQL Server Training...;       Microsoft's product SQL Server... databases for the Microsoft Windows operating systems. This SQL Server training
 
WebLogic Server Tools for Eclipse 3.3
WebLogic Server Tools for Eclipse 3.3 WebLogic Server Tools for Eclipse 3.3      ...;        BEA WebLogic Server Tools
 
Beginner Guide to Linux Server
Beginner Guide to Linux Server Beginner Guide to Linux Server        ... or Mandrake 10 for setting up your server. These flavor of the Linux comes with nice
 
Beginner Guide to Linux Server
Beginner Guide to Linux Server Beginner Guide to Linux Server Introduction Linux is know for its security, performance... server. These flavor of the Linux comes with nice installer and there is little
 
JSF Tutorial for Beginners
;    JAVA SERVER FACES ( not to be confused with JSP..JAVA SERVER...; illustration. ---------      JAVA SERVER FACES is ...,a concept like  Container for controls in Swing, etc. ( 'Mastering Java Server
 
JSF Interview Questions
;   Collection of JSF (Java Server Faces) Interview... to simplify creating user interfaces for web based Java applications. ... custom tag libraries to simplify creating user interfaces for web based Java
 
Server Side Application
Server Side Application Server Side Application...;    Server side application is used to get... to everyone. The Server side application follows these steps Firstly creates a new
 
Java Persistence API
5 platform. Every application server compatible with Java EE 5 supports the Java... Java Persistence API Java Persistence API...; Java Persistence API is the standard API used for the management
 
DNALinux Server 0.592 has been released
DNALinux Server 0.592 has been released DNALinux Server 0.592 has been released We have updated the DNALinux server. This version is based on SLAX 5.1.0 and Apache 2 web server. DNALinux server allows you to run
 
Java Sever Faces 1.2 - JSF 1.2
; Complete Java Server Faces (JSF) Tutorial - JSF Tutorials. JSF... (Java Server Faces 1.2) easily. After going through all our JSF 1.2 tutorial... in JSF 1.2 JSF 1.2 is the latest release of Java Server Faces technology
 
jQuery to Retrieve Server's Current Time
jQuery Example, jQuery to Retrieve Server's Current Time, jQuery Server time jQuery to Retrieve Server's Current Time... the current time from server and displays on the user browser. In this example we
 
Advantages of Servlets over CGI
enabled web server. Servlet runs entirely inside the Java Virtual Machine. Since... provided by the web server. Servlets are also benefited with Java Security...;            Servlets are server
 
New to Java?
. Java Servlets - This enables a developer in adding content to a web server... to a web server. Servlets with Java server pages acts as a competitor to various... by Apache Software Foundation Tomcat is a Java based web application server
 
New to Java?
. Java Servlets - This enables a developer in adding content to a web server... to a web server. Servlets with Java server pages acts as a competitor to various... by Apache Software Foundation Tomcat is a Java based web application server
 
Tomcat an Introduction
; Apache Tomcat:  Apache Tomcat server is one of the most popular open source web server that implements the Java Servlet and the JavaServer Pages (JSP) specifications from Sun Microsystem to provide the platform to run Java code
 
Java review
Java Review Java review Organized by Java: How to Program chapter. About Java - history...-Oriented Programming Graphical User Interface Components I Typical Java
 
UDP Client in Java
UDP Client,UDP Java Client,User Datagram Protocol Client UDP Client in Java      ... will know how to send any request or messages for UDP server by the UDP client
 
Site navigation
 

 

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

Copyright © 2006. All rights reserved.