List of usage examples for org.apache.commons.net.smtp RelayPath RelayPath
public RelayPath(String emailAddress)
From source file:autohit.call.modules.SimpleSmtpModule.java
/** * Add sender relay leg method. It will fault if a session has not been * started or has expired. It will start accumulating a sender relay path. * You must call this at least once, if you are going to use senderrelay(). * The first call should contain a complete email address at the root of * the relay chain. The accumulation will be reset after done() or other * connection ending event.//w w w . j a va 2 s. c o m * * @param leg * relay leg. * @throws CallException */ private void addsenderrelay(String leg) throws CallException { // Is it started? if (client == null) { this.fault("Session not start()'ed."); } try { if (senderrelay == null) { senderrelay = new RelayPath(leg); } else { senderrelay.addRelay(leg); } } catch (Exception ex) { this.done(); this.fault("Cannot add sender relay due to exception. message=" + ex.getMessage()); } }
From source file:autohit.call.modules.TolerantSmtpModule.java
/** * Add sender relay leg method. It will fault if a session has not been * started or has expired. It will start accumulating a sender relay path. * You must call this at least once, if you are going to use senderrelay(). * The first call should contain a complete email address at the root of * the relay chain. The accumulation will be reset after done() or other * connection ending event.//from ww w .java2s . c o m * * @param leg * relay leg. * @throws CallException */ private void addsenderrelay(String leg) throws CallException { // Is it started? if (client == null) { this.fault("Session not start()'ed."); } try { if (senderrelay == null) { senderrelay = new RelayPath(leg); } else { senderrelay.addRelay(leg); } } catch (Exception ex) { this.done(); this.error("Cannot add sender relay due to exception. message=" + ex.getMessage()); } }
From source file:autohit.call.modules.SimpleSmtpModule.java
/** * Add recipeint relay leg method. It will fault if a session has not been * started or has expired. It will start accumulating a recipeint relay * path. You must call this at least once, if you are going to use * recipient relay(). The first call should contain a complete email * address at the root of the relay chain. The accumulation will be reset * after done(), a call to new recipientrelay(), or some other connection * ending event./*from w w w . j ava 2 s . c o m*/ * * @param leg * relay leg. * @throws CallException */ private void addrecipientrelay(String leg) throws CallException { // Is it started? if (client == null) { this.fault("Session not start()'ed."); } try { if (recipientrelay == null) { recipientrelay = new RelayPath(leg); } else { recipientrelay.addRelay(leg); } } catch (Exception ex) { this.done(); this.fault("Cannot add recipient relay due to exception. message=" + ex.getMessage()); } }
From source file:autohit.call.modules.TolerantSmtpModule.java
/** * Add recipeint relay leg method. It will fault if a session has not been * started or has expired. It will start accumulating a recipeint relay * path. You must call this at least once, if you are going to use * recipient relay(). The first call should contain a complete email * address at the root of the relay chain. The accumulation will be reset * after done(), a call to new recipientrelay(), or some other connection * ending event.//from w w w .j a v a2s . c o m * * @param leg * relay leg. * @throws CallException */ private void addrecipientrelay(String leg) throws CallException { // Is it started? if (client == null) { this.error("Session not start()'ed."); } try { if (recipientrelay == null) { recipientrelay = new RelayPath(leg); } else { recipientrelay.addRelay(leg); } } catch (Exception ex) { this.done(); this.error("Cannot add recipient relay due to exception. message=" + ex.getMessage()); } }