Find the answer to your Linux question:
Results 1 to 2 of 2
Hello, I am ltrying to find the config file to modify a parameter for apache (I guess). Here, when sending mail using php web form I get a copy of ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jan 2005
    Location
    Canada
    Posts
    10

    apache@localhost.localdomain


    Hello,

    I am ltrying to find the config file to modify a parameter for apache (I guess). Here, when sending mail using php web form I get a copy of all mail sent from that form, but here is a sample of what I get :

    From : apache@localhost.localdomain
    To : myemail@host.com
    Subject : Mail
    Date : Mon, 28 feb 2005
    Message ...

    How can I configure apache to use my own email, so user will get my mail instead of apache@localhost.localdomain.

    I know there is a way to do it using some option in my php form, but looking for the best and definitive solution. My php form do not let me change any option so I am stuck.

    Tkx

  2. #2
    Linux Enthusiast
    Join Date
    Feb 2005
    Location
    SE, Stockholm
    Posts
    512
    I take it that you do have access to the PHP code(?)

    If so, check for the PHP command
    mail(xxxxxxxx);

    This should be formed something like this:
    Code:
    mail($to,$subject,$bodyTxt,$from);
    Taken that you have variables sent from your PHP form.

    Don't know however if there is a global parameter for this, but this is hw I usually solve this problem

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •