no message
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
package Repository;
|
||||
import Common.Constants;
|
||||
import Common.Database.DBObject;
|
||||
import Common.Database.Database;
|
||||
import Common.Database.rDBObject;
|
||||
@@ -98,8 +99,11 @@ public abstract class RepositoryServer<D extends Database> {
|
||||
Utils.unpackFile(message_in.files.get(aName), f);
|
||||
innerFiles.put(aName, f);
|
||||
}
|
||||
Vector<String> targets_ = new Vector<>();
|
||||
targets_.add(Constants.MailAddress); //себе.
|
||||
targets_.addAll(message_in.targets);
|
||||
//------------------------------
|
||||
for (String target : message_in.targets) {
|
||||
for (String target : targets_) {
|
||||
System.out.println("target=" + target);
|
||||
if (needsEmail(target)) {
|
||||
System.out.println("needs email");
|
||||
@@ -109,12 +113,12 @@ public abstract class RepositoryServer<D extends Database> {
|
||||
@Override
|
||||
protected PasswordAuthentication getPasswordAuthentication() {
|
||||
return new PasswordAuthentication(
|
||||
Global.MailAddress,
|
||||
Global.MailPassword);
|
||||
Constants.MailAddress,
|
||||
Constants.MailPassword);
|
||||
}
|
||||
});
|
||||
MimeMessage message = new MimeMessage(session);
|
||||
message.setFrom(new InternetAddress(Global.MailAddress));
|
||||
message.setFrom(new InternetAddress(Constants.MailAddress));
|
||||
message.setRecipients(Message.RecipientType.CC, InternetAddress.parse(target));
|
||||
message.setSubject(message_in.subject);
|
||||
Multipart multipart = new MimeMultipart();
|
||||
|
||||
Reference in New Issue
Block a user