CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
Search Posts SEARCH
Who's Online WHO'S
Log in LOG

Home: Need a Custom or Prewritten Perl Program?: I need a program that...:
E-Mail Script



Dec 28, 2000, 8:47 PM

Post #1 of 7 (4116 views)
E-Mail Script Can't Post

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, (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.

Any help would be appreciated, Thanks


Jan 2, 2001, 5:59 AM

Post #2 of 7 (4098 views)
Re: E-Mail Script [In reply to] Can't Post

What type of server?


Jan 3, 2001, 7:24 PM

Post #3 of 7 (4087 views)
Re: E-Mail Script [In reply to] Can't Post

The server is Unix...


Jan 13, 2001, 7:37 PM

Post #4 of 7 (4071 views)
Re: E-Mail Script [In reply to] Can't Post

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:"
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:"

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:
"From:" 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
that uses that very function. so that the email looks like it comes from the user that referred the person instead of a "" email address.


Jan 16, 2001, 4:04 PM

Post #5 of 7 (4060 views)
Re: E-Mail Script [In reply to] Can't Post

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 It simply lets you write to an e-mail address such as 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, the recipient will hit reply and thier new message will go right back to, not to the initial sender. So everyone that writes to will have their "from" address stripped out and replaced with 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...


Jan 16, 2001, 4:09 PM

Post #6 of 7 (4059 views)
Re: E-Mail Script [In reply to] Can't Post

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?


Jan 16, 2001, 9:04 PM

Post #7 of 7 (4052 views)
Re: E-Mail Script [In reply to] Can't Post

A list server!
There is an open source list server at:

It is not an egroups clone, but has a lot of features and does not require root access to install.

If you need a customization done. you can find me at...

RFQ Project Developer


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives