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