Package com.cedarsolutions.shared.domain.email

Examples of com.cedarsolutions.shared.domain.email.EmailAddress


        result = new GaeEmailUtils().createInternetAddress("someone@example.com", "Someone Important");
        assertNotNull(result);
        assertEquals("someone@example.com", result.getAddress());
        assertEquals("Someone Important", result.getPersonal());

        result = new GaeEmailUtils().createInternetAddress(new EmailAddress("Someone Important", "someone@example.com"));
        assertNotNull(result);
        assertEquals("someone@example.com", result.getAddress());
        assertEquals("Someone Important", result.getPersonal());
    }
View Full Code Here


        String subject = "Subject";
        String plaintext = "Plaintext";

        EmailMessage email = new EmailMessage();
        email.setFormat(EmailFormat.PLAINTEXT);
        email.setSender(new EmailAddress("Example Sender", "sender@example.com"));
        email.setRecipients(new EmailAddress("Example Recipient", "recipient@example.com"));
        email.setReplyTo(new EmailAddress("Example Reply", "reply@example.com"));
        email.setSubject(subject);
        email.setPlaintext(plaintext);

        InternetAddress sender = new GaeEmailUtils().createInternetAddress("sender@example.com", "Example Sender");
        InternetAddress recipient = new GaeEmailUtils().createInternetAddress("recipient@example.com", "Example Recipient");
View Full Code Here

        String plaintext = "Plaintext";
        String html = "<p>Hello, world.</p>";

        EmailMessage email = new EmailMessage();
        email.setFormat(EmailFormat.MULTIPART);
        email.setSender(new EmailAddress("Example Sender", "sender@example.com"));
        email.setRecipients(new EmailAddress("Example Recipient", "recipient@example.com"));
        email.setReplyTo(new EmailAddress("Example Reply", "reply@example.com"));
        email.setSubject(subject);
        email.setPlaintext(plaintext);
        email.setHtml(html);

        InternetAddress sender = new GaeEmailUtils().createInternetAddress("sender@example.com", "Example Sender");
View Full Code Here

    @Test public void testSendTemplatePlaintext() {
        Map<String, Object> context = new HashMap<String, Object>();

        EmailTemplate template = new EmailTemplate();
        template.setFormat(EmailFormat.PLAINTEXT);
        template.setSender(new EmailAddress("sender-name", "sender-address"));
        template.setReplyTo(new EmailAddress("reply-name", "reply-address"));
        template.setTemplateGroup("g");
        template.setTemplateName("n");
        template.setTemplateContext(context);

        ArgumentCaptor<EmailMessage> email = ArgumentCaptor.forClass(EmailMessage.class);
View Full Code Here

    @Test public void testSendTemplateMultipart() {
        Map<String, Object> context = new HashMap<String, Object>();

        EmailTemplate template = new EmailTemplate();
        template.setFormat(EmailFormat.MULTIPART);
        template.setSender(new EmailAddress("sender-name", "sender-address"));
        template.setReplyTo(new EmailAddress("reply-name", "reply-address"));
        template.setTemplateGroup("g");
        template.setTemplateName("n");
        template.setTemplateContext(context);

        ArgumentCaptor<EmailMessage> email = ArgumentCaptor.forClass(EmailMessage.class);
View Full Code Here

TOP

Related Classes of com.cedarsolutions.shared.domain.email.EmailAddress

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.