Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.javahispano.canyamo.services.mailer
Class SMTPMailer  view SMTPMailer download SMTPMailer.java

java.lang.Object
  extended byorg.javahispano.canyamo.services.mailer.SMTPMailer

public class SMTPMailer
extends java.lang.Object

Description of the Class


Field Summary
private static SMTPMailer instance
          Mantiene la unica instancia que se permite de esta clase
private  SMTPSession smtp
          Description of the Field
private  java.lang.String user
          Description of the Field
 
Constructor Summary
private SMTPMailer(java.lang.String host, java.lang.String user, java.lang.String password)
          Constructor for the Canamo object
 
Method Summary
static SMTPMailer getInstance()
          Devuelve el singleton que se mantiene de esta clase
 SMTPMail getMimeMail(java.lang.String emailFrom, java.lang.String subject)
          Gets the mimeMail attribute of the SMTPMailer object
 SMTPMail getTextMail(java.lang.String emailFrom, java.lang.String subject)
          Gets the textMail attribute of the SMTPMailer object
static void init(java.lang.String host, java.lang.String user, java.lang.String password)
          Description of the Method
 boolean sendMail(SMTPMail mail)
          Description of the Method
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

instance

private static SMTPMailer instance
Mantiene la unica instancia que se permite de esta clase

Since:

smtp

private SMTPSession smtp
Description of the Field


user

private java.lang.String user
Description of the Field

Constructor Detail

SMTPMailer

private SMTPMailer(java.lang.String host,
                   java.lang.String user,
                   java.lang.String password)
Constructor for the Canamo object

Method Detail

getInstance

public static SMTPMailer getInstance()
Devuelve el singleton que se mantiene de esta clase

Since:

init

public static void init(java.lang.String host,
                        java.lang.String user,
                        java.lang.String password)
Description of the Method


getTextMail

public SMTPMail getTextMail(java.lang.String emailFrom,
                            java.lang.String subject)
Gets the textMail attribute of the SMTPMailer object


getMimeMail

public SMTPMail getMimeMail(java.lang.String emailFrom,
                            java.lang.String subject)
Gets the mimeMail attribute of the SMTPMailer object


sendMail

public boolean sendMail(SMTPMail mail)
Description of the Method