commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ricardo Bevilacqua <>
Subject Remove headers on multipart email
Date Fri, 15 Feb 2013 21:44:01 GMT
Hi to all!

I'm facing the following issue: my client has an SMTP server that
blocks incomming mails that have the "from" header for some reason. If
the mail doesn't have this header, it works.

So my question is if there is a chance to remove this header.

I've already tried to set the headers to "null" like this:




But that gives an exception. I also tried to set the From header empty:


    HashMap <String, String> headers = new HashMap<String, String>();
    headers.put("From", "");



But that gives an exception as well.

Your help is greatly  appreciated.



To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message