Return-Path: Delivered-To: apmail-geronimo-user-archive@www.apache.org Received: (qmail 91015 invoked from network); 23 Jan 2006 09:01:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 23 Jan 2006 09:01:53 -0000 Received: (qmail 67353 invoked by uid 500); 23 Jan 2006 09:01:50 -0000 Delivered-To: apmail-geronimo-user-archive@geronimo.apache.org Received: (qmail 67323 invoked by uid 500); 23 Jan 2006 09:01:49 -0000 Mailing-List: contact user-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: user@geronimo.apache.org List-Id: Delivered-To: mailing list user@geronimo.apache.org Received: (qmail 67291 invoked by uid 99); 23 Jan 2006 09:01:48 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 23 Jan 2006 01:01:48 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [195.41.45.119] (HELO mail.eos.dk) (195.41.45.119) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 23 Jan 2006 01:01:45 -0800 Received: (qmail 31385 invoked by uid 510); 23 Jan 2006 09:01:23 -0000 Received: from jrf@trifork.com by mail.eos.dk by uid 508 with qmail-scanner-1.20st (clamuko: 0.66. spamassassin: 3.0.4. Clear:RC:1(10.0.0.216):. Processed in 0.01431 secs); 23 Jan 2006 09:01:23 -0000 Received: from jrfpc.eos.dk (HELO ?10.0.0.216?) (jrf@trifork.com@10.0.0.216) by mail.eos.dk with SMTP; 23 Jan 2006 09:01:23 -0000 Message-ID: <43D49B66.9030504@trifork.com> Date: Mon, 23 Jan 2006 10:01:26 +0100 From: =?ISO-8859-1?Q?Jakob_F=E6rch?= Organization: Trifork A/S User-Agent: Thunderbird 1.5 (Windows/20051201) MIME-Version: 1.0 To: user@geronimo.apache.org Subject: Re: javamail References: <43CD2359.90701@dekasoft.com.ua> <43CD3002.6000706@dekasoft.com.ua> <43CDF96B.3070502@dekasoft.com.ua> <43CE676F.5040106@dekasoft.com.ua> <43D0B4A2.3040504@trifork.com> <43D0C08A.50209@dekasoft.com.ua> <43D0C414.1030401@trifork.com> <43D0C85D.5010007@dekasoft.com.ua> <43D0CA67.1020701@dekasoft.com.ua> <43D12421.5090107@trifork.com> <43D35FBF.1090902@dekasoft.com.ua> In-Reply-To: <43D35FBF.1090902@dekasoft.com.ua> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Alex Andrushchak wrote: > I've done next step, but still have problems: > Sending the message...SessionMailerBean.send: checkpoint 1. > connecting to 192.168.1.2 > connected to 192.168.1.2 > received : 220 gate.dekasoft.com.ua ESMTP Postfix > sent: HELO alex > received : 250 gate.dekasoft.com.ua > Failed ! > Cannot send the message with MailerBean:java.lang.Exception: The message > can not > be send : error > (org.apache.geronimo.javamail.transport.smtp.SMTPTransportExcep > tion: no FROM address) Hi Alex Just one more idea; I checked the Adventure Builder code to see if I was able to see any differences from your code. The Adventure Builder code calls the method setFrom() on the MimeMessage object before attempting to send it. The javadoc for the geronimo implementation of the method specifies: * If session is not null, we first look for an address specified in * its "mail.from" property; if this is not set, we look at its * "mail.user" and "mail.host" properties and if both are not null * then an address of he form "${mail.user}@${mail.host}" is created. * If this fails to give an address, then an attempt is made to * create an address by combining the value of the "user.name" * System property with the value returned from * InetAddress.getLocalHost().getHostName(). So it seems this might be the key to get the mail.from property picked up. Could you try adding the call to message.setFrom()? Jakob