Return-Path: X-Original-To: apmail-commons-user-archive@www.apache.org Delivered-To: apmail-commons-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C8F2BEB78 for ; Sat, 16 Feb 2013 00:12:40 +0000 (UTC) Received: (qmail 96590 invoked by uid 500); 16 Feb 2013 00:08:59 -0000 Delivered-To: apmail-commons-user-archive@commons.apache.org Received: (qmail 85292 invoked by uid 500); 16 Feb 2013 00:08:45 -0000 Mailing-List: contact user-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Users List" Delivered-To: mailing list user@commons.apache.org Delivered-To: moderator for user@commons.apache.org Received: (qmail 81408 invoked by uid 99); 15 Feb 2013 21:44:59 -0000 X-ASF-Spam-Status: No, hits=0.7 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) X-Received: by 10.49.127.15 with SMTP id nc15mr1522346qeb.61.1360964662046; Fri, 15 Feb 2013 13:44:22 -0800 (PST) MIME-Version: 1.0 From: Ricardo Bevilacqua Date: Fri, 15 Feb 2013 18:44:01 -0300 Message-ID: Subject: Remove headers on multipart email To: user@commons.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org 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: email.setHeaders(null); But that gives an exception. I also tried to set the From header empty: HashMap headers = new HashMap(); headers.put("From", ""); email.setHeaders(headers); But that gives an exception as well. Your help is greatly appreciated. Greetings, Richard. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@commons.apache.org For additional commands, e-mail: user-help@commons.apache.org