It looks like the "From:" header is defined in TR.props:
# ------------------------------------------------------------------- # SMTP-From header for your outgoing messages # # All failed delivery messages will be returned to this address. # If unset, these messages will be sent to the address in the # From header (standard behaviour) # # Default: null # ------------------------------------------------------------------- mail.smtp.from= but there still might be a manual override hidden somewhere in the API. hth, -- heiko braun, fork unstable media http://www.unstablemedia.com On Wed, 17 Oct 2001, Markus Seiler wrote: > Hi, > > I 've a problem with MailMessage. I will send a Mail with the follow > configuration: > > MailMessage msg = new MailMessage(); > msg.setHost("localhost"); > msg.setFrom([EMAIL PROTECTED]); > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > msg.setTo(data.getParameters().getString("to")); > msg.setSubject(data.getParameters().getString("subject")); > msg.setBody(data.getParameters().getString("body")); > msg.setDebug(true); > msg.send(); > > The Mailheader of the recived mail: > > Return-path: <[EMAIL PROTECTED]> > Envelope-to: [EMAIL PROTECTED] > Delivery-date: Wed, 17 Oct 2001 12:03:43 +0200 > Received: from [195.52.218.66] (helo=xxx) > by mxng03.kundenserver.de with esmtp (Exim 3.22 #2) > id 15tnXv-0003Hs-00 > for [EMAIL PROTECTED]; Wed, 17 Oct 2001 12:03:31 +0200 > Received: from ixtern-software (localhost [127.0.0.1]) > by mail.netoffix.de (8.11.3/8.11.3/SuSE Linux 8.11.1-0.5) with ESMTP id > f9HA22c21161 > for <[EMAIL PROTECTED]>; Wed, 17 Oct 2001 12:02:02 +0200 > Date: Wed, 17 Oct 2001 12:02:02 +0200 > Message-ID: <7192009.1003312922494.JavaMail.root@subdomain> > From: [EMAIL PROTECTED] > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > To: [EMAIL PROTECTED] > Subject: test > Mime-Version: 1.0 > Content-Type: text/plain; charset=us-ascii > Content-Transfer-Encoding: 7bit > > What can I do that my "From:" in the mail-header is the from in the > java-source? > > > Regards > Markus Seiler > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
