in reply to Eliminating useless server information

Ok I don't think I did a good job explaining what it is I am looking for, so here it goes.

I have a contact form on my server and when it's received your email client will show you the IP address of the server. I want to be able to send emails from my form without it presenting my IP address, or have it setup where I can predefine an IP ie. $ip = '66.54.159.11'; .

Thanks

sulfericacid

  • Comment on Re: Eliminating useless server information

Replies are listed 'Best First'.
Re: Re: Eliminating useless server information
by true (Pilgrim) on Oct 14, 2002 at 08:10 UTC
    Is the perl sending the email?? Or are you using the POST enctype mailto method from an html document? Big difference on options here. If it's a perl script which answers the form submit button and sends an email; just edit your mail message to include a from line from:noreply@mail.com in the message head. If you want to remove the server name in the message head itself (Viewable in a mail client by clicking view source you'll have to change that in your server dns settings).
    A reply falls below the community's threshold of quality. You may see it by logging in.
•Re: Re: Eliminating useless server information
by merlyn (Sage) on Oct 14, 2002 at 14:11 UTC
    The IP address is most likely included to prevent abuse, by logging a fairly reliable indication of the source of the connection (or at least a cooperating middle agent). The most common reason to want something else there is if someone is going to engage in a fraudulant action (like sending spam using a third-party relay).

    Are you saying you want to be abused, or that you want to abuse someone else? It's still not clear from the message. If you merely don't want to show it, then simply remove it from the CGI script. If you want to alter it, then come at the machine from a different address. There's really no ordinary way to just "set" it.

    -- Randal L. Schwartz, Perl hacker

    A reply falls below the community's threshold of quality. You may see it by logging in.