Bug 45990 - SMTP Appender to support ReplyTo
Summary: SMTP Appender to support ReplyTo
Status: RESOLVED FIXED
Alias: None
Product: Log4j - Now in Jira
Classification: Unclassified
Component: Appender (show other bugs)
Version: 1.2
Hardware: All All
: P2 enhancement
Target Milestone: ---
Assignee: log4j-dev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-10 14:48 UTC by Steffen Busch
Modified: 2008-10-15 12:35 UTC (History)
0 users



Attachments
svn diff on src/main/java/org/apache/log4j/net/SMTPAppender.java (1.70 KB, patch)
2008-10-10 14:49 UTC, Steffen Busch
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Steffen Busch 2008-10-10 14:48:45 UTC
log4j 1.2's SMTPAppender supports the following adresses:
-from (1)
  <param name="from"   value="log4j@hostname.example.org" />
-to (many)
  <param name="to" value="somebody@example.org,alert@example.org" />
-cc (many)
  <param name="cc" value="one@example.org,two@example.org" />
-bcc (many)
  <param name="bcc" value="three@example.org,four@example.org" />

Sometimes, it's necessary to set the from address to an internal address
that works with the SMTP server for outgoing messages, but when a receiver
replies to the address, it won't because that internal address is unknown
to the receivers SMTP.

The solution for this is to specify one (or more) ReplyTo addresses. Currently,
the SMTP Appender does not support this:
  <param name="replyTo"   value="support@example.org" />
or
  <param name="replyTo"   value="support@example.org,support-alert@example.org" />


The attached changes in src/main/java/org/apache/log4j/net/SMTPAppender.java
would implement this capability.
Comment 1 Steffen Busch 2008-10-10 14:49:24 UTC
Created attachment 22713 [details]
svn diff on src/main/java/org/apache/log4j/net/SMTPAppender.java
Comment 2 Curt Arnold 2008-10-15 12:35:09 UTC
Committed rev 705003.