You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by Markus Seiler <se...@ixtern.de> on 2001/10/17 12:29:40 UTC
sending mail with MailMessage
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(system@dummy.de);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
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: <sy...@subdoamin.providerdomain.de>
Envelope-to: xyz@xyz.de
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 xyz@xyz.de; 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 <xy...@xyz.de>; Wed, 17 Oct 2001 12:02:02 +0200
Date: Wed, 17 Oct 2001 12:02:02 +0200
Message-ID: <71...@subdomain>
From: system@subdoamin.providerdomain.de
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
To: xyz@xyz.de
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: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org
Re: sending mail with MailMessage
Posted by Heiko Braun <he...@fork.de>.
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(system@dummy.de);
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> 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: <sy...@subdoamin.providerdomain.de>
> Envelope-to: xyz@xyz.de
> 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 xyz@xyz.de; 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 <xy...@xyz.de>; Wed, 17 Oct 2001 12:02:02 +0200
> Date: Wed, 17 Oct 2001 12:02:02 +0200
> Message-ID: <71...@subdomain>
> From: system@subdoamin.providerdomain.de
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> To: xyz@xyz.de
> 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: turbine-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: turbine-user-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org