Search in sources :

Example 1 with MailMessage

use of com.outjected.email.api.MailMessage in project simple-email by codylerum.

the class InternetAddressTest method invalidReplyToSimpleAddresses.

@Test(expected = InvalidAddressException.class)
public void invalidReplyToSimpleAddresses() {
    MailMessage m = new MailMessageImpl(TestMailConfigs.standardConfig());
    m.replyTo("woo foo @bar.com");
}
Also used : MailMessage(com.outjected.email.api.MailMessage) MailMessageImpl(com.outjected.email.impl.MailMessageImpl) Test(org.junit.Test)

Example 2 with MailMessage

use of com.outjected.email.api.MailMessage in project simple-email by codylerum.

the class InternetAddressTest method invalidReadReceipt.

@Test(expected = InvalidAddressException.class)
public void invalidReadReceipt() {
    MailMessage m = new MailMessageImpl(TestMailConfigs.standardConfig());
    m.readReceipt("woo foo @bar.com");
}
Also used : MailMessage(com.outjected.email.api.MailMessage) MailMessageImpl(com.outjected.email.impl.MailMessageImpl) Test(org.junit.Test)

Example 3 with MailMessage

use of com.outjected.email.api.MailMessage in project simple-email by codylerum.

the class InternetAddressTest method invalidbccFullAddresses.

@Test(expected = InvalidAddressException.class)
public void invalidbccFullAddresses() {
    MailMessage m = new MailMessageImpl(TestMailConfigs.standardConfig());
    m.bcc("foo @bar.com", "Woo");
}
Also used : MailMessage(com.outjected.email.api.MailMessage) MailMessageImpl(com.outjected.email.impl.MailMessageImpl) Test(org.junit.Test)

Example 4 with MailMessage

use of com.outjected.email.api.MailMessage in project simple-email by codylerum.

the class InternetAddressTest method invalidFromSimpleAddresses.

@Test(expected = InvalidAddressException.class)
public void invalidFromSimpleAddresses() {
    MailMessage m = new MailMessageImpl(TestMailConfigs.standardConfig());
    m.from("woo foo @bar.com");
}
Also used : MailMessage(com.outjected.email.api.MailMessage) MailMessageImpl(com.outjected.email.impl.MailMessageImpl) Test(org.junit.Test)

Example 5 with MailMessage

use of com.outjected.email.api.MailMessage in project simple-email by codylerum.

the class InternetAddressTest method invalidReplyToFullAddresses.

@Test(expected = InvalidAddressException.class)
public void invalidReplyToFullAddresses() {
    MailMessage m = new MailMessageImpl(TestMailConfigs.standardConfig());
    m.replyTo("Woo");
}
Also used : MailMessage(com.outjected.email.api.MailMessage) MailMessageImpl(com.outjected.email.impl.MailMessageImpl) Test(org.junit.Test)

Aggregations

MailMessage (com.outjected.email.api.MailMessage)13 MailMessageImpl (com.outjected.email.impl.MailMessageImpl)13 Test (org.junit.Test)13 EmailContact (com.outjected.email.api.EmailContact)1 BasicEmailContact (com.outjected.email.impl.BasicEmailContact)1 ArrayList (java.util.ArrayList)1