com.ibm.commerce.emarketing.utils
Class SMTPAuthenticator

java.lang.Object
  javax.mail.Authenticator
      com.ibm.commerce.emarketing.utils.SMTPAuthenticator

public class SMTPAuthenticator
extends javax.mail.Authenticator

A JavaMail Authenticator object that can be used to authenticate with an SMTP server prior to attempting to send mail through the server.

See Also:
Authenticator, PasswordAuthentication

Field Summary
static java.lang.String COPYRIGHT
Copyright.
Constructor Summary
SMTPAuthenticator(java.lang.String account, java.lang.String pwd)
SMTPAuthenicator constructor.
Method Summary
javax.mail.PasswordAuthentication getPasswordAuthentication()
Gets a PasswordAuthenication object based on the parameters passed to the contructor.
Methods inherited from class javax.mail.Authenticator
getDefaultUserName, getRequestingPort, getRequestingPrompt, getRequestingProtocol, getRequestingSite
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Field Detail

COPYRIGHT

public static final java.lang.String COPYRIGHT
Copyright.
See Also:
Constant Field Values
Constructor Detail

SMTPAuthenticator

public SMTPAuthenticator(java.lang.String account,
                         java.lang.String pwd)
SMTPAuthenicator constructor.
Parameters:
account - the user account name to use
Method Detail

getPasswordAuthentication

public javax.mail.PasswordAuthentication getPasswordAuthentication()
Gets a PasswordAuthenication object based on the parameters passed to the contructor.
Returns:
the created PasswordAuthentication object.

Feedback