Search in sources :

Example 11 with MailMessage

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

the class InternetAddressTest method invalidDeliveryReceipt.

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

Example 12 with MailMessage

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

the class InternetAddressTest method invalidToSimpleAddresses.

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

Example 13 with MailMessage

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

the class InternetAddressTest method invalidBccSimpleAddresses.

@Test(expected = InvalidAddressException.class)
public void invalidBccSimpleAddresses() {
    MailMessage m = new MailMessageImpl(TestMailConfigs.standardConfig());
    m.bcc("woo foo @bar.com");
}
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