Hi, I'm looking for a script that changes the reply-to address in an e-mail message. In other words, when someone sends an e-mail to hello@spirit.com, (an e-mail address on my server), their reply-to address is automatically replaced with a reply-to address of my choice. This way I can force the recipient to reply to a certain address.

first, you have to know what a mail server is expecting from you. I dont know if you have a mail script currently, but if you do you may just need to add a few more lines to it before it sends the subject....

first it is expecting a "mail from: whoever@domain.com" on a server that doesnt have relaying enabled, it wont go past this point unless that address is from the same domain. which is why it is good to be able to put a reply address.

next it is wanting "RCPT TO: whoever@anywhere.com"

at that point, it recieves "data" to let it know that this is the body of the mail then you can use any of these following lines: To: whoever@anywhere.com "From: whoever@anywhere.com" this is who the message will appear to come from, which inturn will be the reply address instead of the email address you gave it in "mail from:" Subject: this is an email this is the subject of the msg then you want to leave a blank line then enter whatever you want to be in the body followed by a "." on a blank line. then you are finish.

I have a referal script at http://www.mydesktophelp.com/perl.htm that uses that very function. so that the email looks like it comes from the user that referred the person instead of a "mydesktophelp.com" email address.

It is not my own server, I simply am paying for an account from the host, so I don't think I have access to the mail script as you are talking about. I believe I need a stand alone script that I can load in myself. Basically, I'm trying to create a program similiar to eGroup.com. It simply lets you write to an e-mail address such as anyone@anywhere.com and the message will then be forwarded to everyone that you have put on the list. The reply-to address is set to the anyone@anywhere address so that no matter who initially wrote to anyone@anywhere.com, the recipient will hit reply and thier new message will go right back to anyone@anywhere.com, not to the initial sender. So everyone that writes to anyone@anywhere.com will have their "from" address stripped out and replaced with anyone@anywhere.com. This way, all the replies get sent right back to everyone on the list. Thus creating a great group e-mail system. Does any of that make sense? I hope...

yes, thats exactly what im saying, i didnt mean that you have to have your own server, you just have to have access to your email server, if you can send and recieve email then you have access to your email server. see what im saying?