* open-postings to the newswire
*
* @author mir-coders group
- * @version $Id: ServletModuleOpenIndy.java,v 1.89 2003/05/08 02:43:42 zapata Exp $
+ * @version $Id: ServletModuleOpenIndy.java,v 1.89.2.1 2003/05/17 16:21:14 john Exp $
*
*/
String to = req.getParameter("mail_to");
String from = req.getParameter("mail_from");
String from_name = req.getParameter("mail_from_name");
+ String from_ip = req.getRemoteAddr();
String comment = req.getParameter("mail_comment");
String mail_language = req.getParameter("mail_language");
// add some headers
- content = "To: " + to + "\nReply-To: "+ from + "\n" + content;
+ content = "To: " + to + "\nReply-To: "+ from + "\nX-Originating-IP: "+ from_ip + "\n" + content;
// put in the comment where it should go
if (comment != null) {
String commentTextToInsert = "\n\nAttached comment from " + from_name + ":\n" + comment;