Paulbreeuwsma said:
I can program php, so I only must know how to send the email to the file.
I've read
this, but I don't know which mail system the provider is using.
From the above sentence I'm presuming you're a site owner without any shell, admin or root access to the server.
If that's the case, then consider this:
DA servers run exim. They don't run sendmail so you can't be using sendmail on a DA powered website. Yes, you can send mail to sendmail in your scripts, but it's just a symbolic link to exim.
You can set up an alias through the forwarder system; there's no real difference between aliasing and forwarding. I don't know if the DA interface allows all possible piping characters to be entered, but you can check; if it doesn't, you'll get an error when you try to save the forward.
There is an address pipe in the exim.conf (I wrote it); here's the contents:
Code:
# This transport is used for handling pipe deliveries generated by alias
# or .forward files. If the pipe generates any standard output, it is returned
# to the sender of the message as a delivery error. Set return_fail_output
# instead of return_output if you want this to happen only when the pipe fails
# to complete normally. You can set different transports for aliases and
# forwards if you want to - see the references to address_pipe in the directors
# section below.
address_pipe:
driver = pipe
return_output
I don't know if you'll need to add "pipe_as_creator" or not because I don't know the purpose of it.
If you do, then the systems administrator will have to do it for you; and it will effect the entire server, so they may not be willing.
Ask your hosting company.
If you're the admin, then you can do it yourself using a shell connection.
Jeff