View | Details | Raw Unified | Return to bug 24715
Collapse All | Expand All

(-)MailTag.java (-2 / +2 lines)
Lines 397-406 Link Here
397
                    // create the session with an authenticator object
397
                    // create the session with an authenticator object
398
                    // better way to do authentication
398
                    // better way to do authentication
399
                    props.put("mail.smtp.auth", "true");
399
                    props.put("mail.smtp.auth", "true");
400
                    sessionobj = Session.getDefaultInstance(props,
400
                    sessionobj = Session.getInstance(props,
401
                                         new MailAuthenticator(user, password));
401
                                         new MailAuthenticator(user, password));
402
            } else
402
            } else
403
                sessionobj = Session.getDefaultInstance(props, null);
403
                sessionobj = Session.getInstance(props, null);
404
404
405
            message = new MimeMessage(sessionobj);
405
            message = new MimeMessage(sessionobj);
406
        }
406
        }

Return to bug 24715