com.atlassian.jira.event.listeners.mail
Class MailSender

java.lang.Object
  extended by com.atlassian.jira.event.listeners.mail.MailSender

Deprecated. get an instance of the com.atlassian.mail.server.MailServerManager object and send mail through that class.

public class MailSender
extends Object

A class to actually send the email, generated from Velocity templates

See Also:
MailListener

Field Summary
(package private)  String from
          Deprecated.  
(package private)  String prefix
          Deprecated.  
(package private)  String sessionLocation
          Deprecated.  
(package private)  String smtpServer
          Deprecated.  
 
Constructor Summary
MailSender(String sessionLocation, String smtpServer, String from)
          Deprecated. Create a MailSender given the JNDI session location or SMTP server address, and the from email.
 
Method Summary
 String getPrefix()
          Deprecated. Get the subject prefix for this MailSender.
static javax.mail.internet.InternetAddress[] parseAddresses(String addresses)
          Deprecated. Parse addresses from a comma (and space) separated string into the proper array
 void send(String to, String cc, String subject, String body)
          Deprecated. Send a message.
 void setPrefix(String prefix)
          Deprecated. Set the subject prefix for this MailSender.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

sessionLocation

String sessionLocation
Deprecated. 

smtpServer

String smtpServer
Deprecated. 

from

String from
Deprecated. 

prefix

String prefix
Deprecated. 
Constructor Detail

MailSender

public MailSender(String sessionLocation,
                  String smtpServer,
                  String from)
Deprecated. 
Create a MailSender given the JNDI session location or SMTP server address, and the from email.

Method Detail

getPrefix

public String getPrefix()
Deprecated. 
Get the subject prefix for this MailSender.


setPrefix

public void setPrefix(String prefix)
Deprecated. 
Set the subject prefix for this MailSender.


send

public void send(String to,
                 String cc,
                 String subject,
                 String body)
          throws javax.mail.MessagingException,
                 NamingException
Deprecated. 
Send a message.

Throws:
javax.mail.MessagingException
NamingException

parseAddresses

public static javax.mail.internet.InternetAddress[] parseAddresses(String addresses)
                                                            throws javax.mail.internet.AddressException
Deprecated. 
Parse addresses from a comma (and space) separated string into the proper array

Throws:
javax.mail.internet.AddressException


Copyright © 2002-2007 Atlassian. All Rights Reserved.