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");
}
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");
}
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");
}
Aggregations