ninja.postoffice.commonsmail
Class CommonsmailHelperImpl
java.lang.Object
ninja.postoffice.commonsmail.CommonsmailHelperImpl
- All Implemented Interfaces:
- CommonsmailHelper
public class CommonsmailHelperImpl
- extends Object
- implements CommonsmailHelper
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CommonsmailHelperImpl
public CommonsmailHelperImpl()
createMultiPartEmailWithContent
public org.apache.commons.mail.MultiPartEmail createMultiPartEmailWithContent(Mail mail)
throws org.apache.commons.mail.EmailException
- Creates a MultiPartEmail. Selects the correct implementation
regarding html (MultiPartEmail) and/or txt content or both.
Populates the mutlipart email accordingly with the txt / html content.
- Specified by:
createMultiPartEmailWithContent
in interface CommonsmailHelper
- Throws:
org.apache.commons.mail.EmailException
doPopulateMultipartMailWithContent
public void doPopulateMultipartMailWithContent(org.apache.commons.mail.MultiPartEmail multiPartEmail,
Mail mail)
throws javax.mail.internet.AddressException,
org.apache.commons.mail.EmailException
- Specified by:
doPopulateMultipartMailWithContent
in interface CommonsmailHelper
- Throws:
javax.mail.internet.AddressException
org.apache.commons.mail.EmailException
doSetServerParameter
public void doSetServerParameter(org.apache.commons.mail.MultiPartEmail multiPartEmail,
String smtpHost,
Integer smtpPort,
Boolean smtpSsl,
String smtpUser,
String smtpPassword,
Boolean smtpDebug)
- Specified by:
doSetServerParameter
in interface CommonsmailHelper
createListOfAddresses
public List<Tuple<String,String>> createListOfAddresses(Collection<String> emails)
throws javax.mail.internet.AddressException
- Specified by:
createListOfAddresses
in interface CommonsmailHelper
- Throws:
javax.mail.internet.AddressException
createValidEmailFromString
public Tuple<String,String> createValidEmailFromString(String email)
throws javax.mail.internet.AddressException
- Specified by:
createValidEmailFromString
in interface CommonsmailHelper
- Throws:
javax.mail.internet.AddressException
Copyright © 2012. All Rights Reserved.