Package org.marian.mail.exceptions

Examples of org.marian.mail.exceptions.MarianMailException


        this.co = data;
        this.mimeMessage = mimeMessage;
       
        // Validate the email
        if (!this.getAddressTo().equals(this.co.getMarianProperties().marian_address()))
           throw new MarianMailException("Is not a message for me. I'm not "+this.getAddressTo());
        if (!this.co.getContactsXML().containsEmail(this.getAddressFrom()))
           throw new MarianMailException("Unknown contact for email "+ this.getAddressFrom());
       
    }
View Full Code Here

TOP

Related Classes of org.marian.mail.exceptions.MarianMailException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.