3,27 → 3,24 |
import javax.mail.MessagingException; |
|
import de.viathinksoft.utils.mail.EMailAddress; |
import de.viathinksoft.utils.mail.InvalidMailAddressException; |
|
public class PlainTextMailSender extends RawMailSender { |
|
// --- E-Mail-Adressobjekt benutzen (dekodiert automatisch den Punycode) |
|
public void setMailFrom(String mailFrom) throws InvalidMailAddressException { |
public void setMailFrom(String mailFrom) { |
this.setMailFrom(new EMailAddress(mailFrom)); |
} |
|
public void setMailFrom(EMailAddress mailFrom) throws InvalidMailAddressException { |
if (mailFrom == null) throw new InvalidMailAddressException(); |
public void setMailFrom(EMailAddress mailFrom) { |
super.setMailFrom(mailFrom.getMailAddressPunycodedDomain()); |
} |
|
public void setRecipient(String recipient) throws InvalidMailAddressException { |
public void setRecipient(String recipient) { |
this.setRecipient(new EMailAddress(recipient)); |
} |
|
public void setRecipient(EMailAddress recipient) throws InvalidMailAddressException { |
if (recipient == null) throw new InvalidMailAddressException(); |
public void setRecipient(EMailAddress recipient) { |
super.setRecipient(recipient.getMailAddressPunycodedDomain()); |
} |
|