Hi Ricardo,
that is rather strange, since the "from" is the FROM address and is
AFAIK mandatory according to RFC822 - so you are asked to send an
invalid MimeMessage?! Can you check out if you can get the underlying
MimeMessage (Email is just a wrapper) and tinker with it ...
Cheers,
Siegfried Goeschl
On 15.02.13 22:44, Ricardo Bevilacqua wrote:
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:
<code>
email.setHeaders(null);
</code>
But that gives an exception. I also tried to set the From header empty:
<code>
HashMap <String, String> headers = new HashMap<String, String>();
headers.put("From", "");
email.setHeaders(headers);
</code>
But that gives an exception as well.
Your help is greatly appreciated.
Greetings,
Richard.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@commons.apache.org
For additional commands, e-mail: user-h...@commons.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@commons.apache.org
For additional commands, e-mail: user-h...@commons.apache.org