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 E4939664F for ; Wed, 6 Jul 2011 09:10:04 +0000 (UTC) Received: (qmail 24711 invoked by uid 500); 6 Jul 2011 09:09:49 -0000 Delivered-To: apmail-commons-user-archive@commons.apache.org Received: (qmail 24110 invoked by uid 500); 6 Jul 2011 09:09:23 -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 Received: (qmail 24073 invoked by uid 99); 6 Jul 2011 09:09:15 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Jul 2011 09:09:15 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [78.142.189.74] (HELO orange.it-room.net) (78.142.189.74) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Jul 2011 09:09:06 +0000 Received: from localhost (localhost [127.0.0.1]) by orange.it-room.net (Postfix) with ESMTP id BC3533820C4 for ; Wed, 6 Jul 2011 11:08:44 +0200 (CEST) X-Virus-Scanned: amavisd-new at it-room.net Received: from orange.it-room.net ([127.0.0.1]) by localhost (orange.it-room.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id pYPPdcPgLGfb for ; Wed, 6 Jul 2011 11:08:44 +0200 (CEST) Received: from deathmarch.local (unknown [41.78.140.30]) by orange.it-room.net (Postfix) with ESMTPSA id CD8CF3820B9 for ; Wed, 6 Jul 2011 11:08:43 +0200 (CEST) Message-ID: <4E142618.20302@it20one.at> Date: Wed, 06 Jul 2011 11:08:40 +0200 From: Siegfried Goeschl Reply-To: siegfried.goeschl@it20one.at Organization: IT20one GmbH User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.18) Gecko/20110616 Thunderbird/3.1.11 MIME-Version: 1.0 To: Commons Users List Subject: Re: [email] Email attachment is inline for some reason References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Hi David, that sound a little bit strange - can you have a look at the JUnit tests? There is an "EmailLiveTest" which allows sending real emails with a bit of tinkering - I suggest to have a look at the test, configure them to send test emails to your email account and then double-check your production code. Cheers, Siegfried Goeschl On 06.07.11 05:46, David Hoffer wrote: > I have a strange problem. I've used commons-email for a while now > with good success but now all of the sudden it isn't working right and > I don't know why. The emails have 3 problems: > > 1. Although I attach a file to the email as an attachment it is > received inline as base64 encoded text. I.e. my code does this: > attachment.setDisposition(EmailAttachment.ATTACHMENT); > > 2. The subject is replaced with this: (no subject) > > 3. The from and reply to email addresses are dropped and replaced with > the email address used in as the authenticator. > > This is only a problem when I run the code on the production server > which is Linux (hosted virtual server). It works as expected on > Windows during test. This code on the Linux server used to work but > it was a prior build, not sure what changed but nothing in the email > code changed...just a different file being sent with different > description. > > Any ideas why these three things might be occurring? > > -Dave > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@commons.apache.org > For additional commands, e-mail: user-help@commons.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@commons.apache.org For additional commands, e-mail: user-help@commons.apache.org