Return-Path: Delivered-To: apmail-commons-user-archive@www.apache.org Received: (qmail 94600 invoked from network); 18 Dec 2009 12:27:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 18 Dec 2009 12:27:47 -0000 Received: (qmail 51070 invoked by uid 500); 18 Dec 2009 12:27:45 -0000 Delivered-To: apmail-commons-user-archive@commons.apache.org Received: (qmail 50965 invoked by uid 500); 18 Dec 2009 12:27: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 Received: (qmail 50955 invoked by uid 99); 18 Dec 2009 12:27:45 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Dec 2009 12:27:45 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of chuckdeal97@gmail.com designates 74.125.92.147 as permitted sender) Received: from [74.125.92.147] (HELO qw-out-1920.google.com) (74.125.92.147) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Dec 2009 12:27:37 +0000 Received: by qw-out-1920.google.com with SMTP id 14so588542qwa.60 for ; Fri, 18 Dec 2009 04:27:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=k+KEhSjIeR5icyykQiOlFARtjL7wM6oPOLNfx4K9yao=; b=vt9nTGgr0Yqz8u4m7spOS0VePrXAzZU6Diz6RTEsP3dvdduKevOdzX+MKKPt8ZyL2L 88sPiV20k9mq/vY0dGQyHlSUWowgvSNQ4ORTgzgcOeLm85IQGihKLNzxs/QQMVh/Fk57 7WM2w4Omz7wCCm57b66v0gLKjy+JTAH4Tb5Qw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=Ciw8XO/zJR18Mgef/jjJftdvhKM4/hJa7PFFAE95rjm1j6Xen4K3OXJe0ggzZF1lat /uGBOFe7+bQzO68wPF0kF0IbiNNkvaRRADeSGK/BM7BxCn431hhtsamHOGXt06EXAxlC SuoXijJbamWZYBA/U+qZUNCflb/2CGZ0PFqaU= MIME-Version: 1.0 Received: by 10.229.118.135 with SMTP id v7mr2036548qcq.62.1261139236497; Fri, 18 Dec 2009 04:27:16 -0800 (PST) In-Reply-To: <002c01ca7fc4$eb63e330$c22ba990$@com> References: <002c01ca7fc4$eb63e330$c22ba990$@com> Date: Fri, 18 Dec 2009 07:27:16 -0500 Message-ID: Subject: Re: [EMAIL] Problem with mimemessage From: Charles Deal To: Commons Users List Content-Type: multipart/alternative; boundary=000e0cd6d132342b1a047affdce1 X-Virus-Checked: Checked by ClamAV on apache.org --000e0cd6d132342b1a047affdce1 Content-Type: text/plain; charset=ISO-8859-1 Is it possible that the javamail/activation jars are in common lib folders of your application server? For instance Tomcat has common/lib, shared/lib, and server/lib. On Fri, Dec 18, 2009 at 4:31 AM, Ludwig Magnusson wrote: > Hello! > > I want my webapp to send emails to its users. > > I'm using turbine, which has VelocityEmail, that uses commons email, which > in turn uses javamail. > > I realize that this may be a javamail problem but since the Email class in > commons-email always uses javamail I am asking here to see if anyone have > had the same problem. This list is much more active than javamails own. > > > > The problem is that when I compile my app, everything works, but when I run > my webapp I get this error: > > > > java.lang.UnsupportedOperationException: Method not yet implemented > > at > javax.mail.internet.MimeMessage.(MimeMessage.java:89) > > at > org.apache.commons.mail.Email.buildMimeMessage(Email.java:1011) > > at > org.apache.commons.mail.Email.send(Email.java:1162) > > at > org.apache.turbine.util.velocity.VelocityEmail.send(VelocityEmail.java:265) > > > > If I goto line 89 in MimeMessage, it consists of javadoc text so obviously > something is wrong. > > > > I have tried commons email 1.0, 1.1 and 1.2 all with javamail 1.4.1 and > 1.4.3 but I always get this error. > > I also worte a small program that uses the exact same code to send the > email > and I run it via eclipse. There it works. This suggests that the file I > have > in WEB-INF/lib is wrong but it is the same one I have linked as a > referenced > library in eclipse. > > > > I googled a bit and found other people having the same problem. The > solution > there was to make sure that the file in the lib directory was the correct > one, but as I said, I have already checked this. > > Does anyone recognize this error? > > /Ludwig > > --000e0cd6d132342b1a047affdce1--