comparison src/goodjava/mail/Smtp.java @ 1686:e34b73678a4f

mail fix
author Franklin Schmidt <fschmidt@gmail.com>
date Wed, 08 Jun 2022 21:55:25 -0600
parents d3728e3e5af3
children 1ffe1e06ea55
comparison
equal deleted inserted replaced
1685:46cf5137cb6b 1686:e34b73678a4f
45 String name = entry.getKey(); 45 String name = entry.getKey();
46 String value = entry.getValue(); 46 String value = entry.getValue();
47 if( name.equalsIgnoreCase("from") ) { 47 if( name.equalsIgnoreCase("from") ) {
48 from(value); 48 from(value);
49 } 49 }
50 }
51 for( Map.Entry<String,String> entry : msg.headers.entrySet() ) {
52 String name = entry.getKey();
53 String value = entry.getValue();
50 if( name.equalsIgnoreCase("to") 54 if( name.equalsIgnoreCase("to")
51 || name.equalsIgnoreCase("cc") 55 || name.equalsIgnoreCase("cc")
52 || name.equalsIgnoreCase("bcc") 56 || name.equalsIgnoreCase("bcc")
53 ) { 57 ) {
54 for( String s : value.split(",") ) { 58 for( String s : value.split(",") ) {