Skip to content

Commit

Permalink
Bcc bug removed
Browse files Browse the repository at this point in the history
  • Loading branch information
hanuor committed Feb 17, 2017
1 parent baee347 commit 282d23a
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 3 deletions.
7 changes: 7 additions & 0 deletions .gitignore
Expand Up @@ -1082,3 +1082,10 @@
/bin/
/bin/
/bin/
/bin/
/bin/
/bin/
/bin/
/bin/
/bin/
/bin/
13 changes: 11 additions & 2 deletions src/core/SmtpCorelogic.java
Expand Up @@ -99,13 +99,22 @@ protected PasswordAuthentication getPasswordAuthentication() {
new InternetAddress(recepientPacket
.get("recepientEmail")));
}
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
try {
if (recepientPacket.get("CcRecepients") != null) {

message.setRecipients(Message.RecipientType.CC,
ccrecepientAddress);
}
if (recepientPacket.get("BCcRecepients") != null) {
System.out.println("Wherever " );
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
try {
if (recepientPacket.get("BccRecepients") != null) {
message.setRecipients(Message.RecipientType.BCC,
bccrecepientAddress);
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/AddRecepientsDialog.java
Expand Up @@ -106,7 +106,7 @@ public void actionPerformed(ActionEvent e) {
protected Boolean doInBackground() throws Exception {
// TODO Auto-generated method stub
String recepData = addRecep.getText();

System.out.println(BCCTextField.getText());
recepPacket.put("CcRecepients", CCTextField.getText());
recepPacket.put("BccRecepients", BCCTextField.getText());

Expand Down

0 comments on commit 282d23a

Please sign in to comment.