public abstract class EmailProvider {
- public abstract void sendmail(String to, String subject, String message, String from, String replyto, String toname, String fromname, String errorsto, boolean extra) throws IOException;
+ public abstract void sendMail(String to, String subject, String message, String replyto, String toname, String fromname, String errorsto, boolean extra) throws IOException;
private static EmailProvider instance;
BufferedReader br = br0;
PrintWriter pw = pw0;
String line;
- if ( !Sendmail.readSMTPResponse(br, 220)) {
+ if ( !SendMail.readSMTPResponse(br, 220)) {
continue;
}
if (starttls) {
pw.print("STARTTLS\r\n");
pw.flush();
- if ( !Sendmail.readSMTPResponse(br, 220)) {
+ if ( !SendMail.readSMTPResponse(br, 220)) {
continue;
}
Socket s1 = ((SSLSocketFactory) SSLSocketFactory.getDefault()).createSocket(s, host, 25, true);
pw = new PrintWriter(new OutputStreamWriter(s1.getOutputStream(), "UTF-8"));
pw.print("EHLO www.cacert.org\r\n");
pw.flush();
- if ( !Sendmail.readSMTPResponse(br, 250)) {
+ if ( !SendMail.readSMTPResponse(br, 250)) {
continue;
}
}
pw.print("MAIL FROM: <returns@cacert.org>\r\n");
pw.flush();
- if ( !Sendmail.readSMTPResponse(br, 250)) {
+ if ( !SendMail.readSMTPResponse(br, 250)) {
continue;
}
pw.print("RCPT TO: <" + address + ">\r\n");
pw.flush();
- if ( !Sendmail.readSMTPResponse(br, 250)) {
+ if ( !SendMail.readSMTPResponse(br, 250)) {
continue;
}
pw.print("QUIT\r\n");
pw.flush();
- if ( !Sendmail.readSMTPResponse(br, 221)) {
+ if ( !SendMail.readSMTPResponse(br, 221)) {
continue;
}