changeset 1686:e34b73678a4f

mail fix
author Franklin Schmidt <fschmidt@gmail.com>
date Wed, 08 Jun 2022 21:55:25 -0600
parents 46cf5137cb6b
children f48db13ae2d9
files src/goodjava/mail/Smtp.java
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/goodjava/mail/Smtp.java	Wed Jun 08 20:13:54 2022 -0600
+++ b/src/goodjava/mail/Smtp.java	Wed Jun 08 21:55:25 2022 -0600
@@ -47,6 +47,10 @@
 			if( name.equalsIgnoreCase("from") ) {
 				from(value);
 			}
+		}
+		for( Map.Entry<String,String> entry : msg.headers.entrySet() ) {
+			String name = entry.getKey();
+			String value = entry.getValue();
 			if( name.equalsIgnoreCase("to")
 				|| name.equalsIgnoreCase("cc")
 				|| name.equalsIgnoreCase("bcc")