Home > Archive > PERL Miscellaneous > June 2005 > Switches for configuring email sending
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Switches for configuring email sending
|
|
| Robert 2005-06-10, 3:59 am |
| Hi,
While this is only a semi perl question, I hope someone here can help me
configure my sendmail parameter. (no responses from sendmail newsgroup) I
have a simple form that gets passes to sendmail for sending. Due to spammers
hijacking sendmail scripts, I no longer pass the recipient from the form,
rather I want to hardwire the recipient into the script. But I cannot find
and documentation out there on sendmail switches ... ie ... -t -i etc etc
and what each does (and other switches I dont know about). I just want my
script to send the email to a hardwired recipient within the script.
$mailprog = "/usr/sbin/sendmail -t";
I think the above means get recipient from the form fields.
$mailprog = "/usr/sbin/sendmail -i";
Not sure what the above does.
I thought I read somewhere a while back that to hardwire the recipient you
did something like below.
$mailprog = "/usr/sbin/sendmail user\@email.com";
No switches or anything ... anyways if someone know where I might find
complete documentation for sendmail in a CGI envoronment, that would be much
appriciated.
Robert
| |
| axel@white-eagle.invalid.uk 2005-06-10, 8:56 am |
| Robert <rbutcher.nospam@hotmail.com> wrote:
> While this is only a semi perl question, I hope someone here can help me
> configure my sendmail parameter. (no responses from sendmail newsgroup) I
> have a simple form that gets passes to sendmail for sending. Due to spammers
> hijacking sendmail scripts, I no longer pass the recipient from the form,
> rather I want to hardwire the recipient into the script. But I cannot find
> and documentation out there on sendmail switches ... ie ... -t -i etc etc
> and what each does (and other switches I dont know about). I just want my
> script to send the email to a hardwired recipient within the script.
You will get the basic information on sendmail switches by:
man sendmail
Axel
|
|
|
|
|