plz는 app.conf 파일을 제외하고 "mail.smtp.user"및 "# mail.smtp.pass"를 설정하는 다른 방법을 제안합니다.런타임에 smtp 구성을 설정하는 방법
우리는 단일 응용 프로그램에서 여러 개의 메일을 보내기 위해 여러 개의 smtp 계정을 사용하고자하기 때문에.
그래서 자바
new javax.mail.Authenticator() {
protected PasswordAuthentication getPasswordAuthentication() {
return new PasswordAuthentication("[email protected]","abc");
}}
왜 여러 SMTP 계정이 필요합니까? –
무엇을 사용 했습니까? – ripper234