-
Blood elf, or PHP guru... hmmm
Hey guys,
Does anyone know how to find out the path to sendmail e.g. /usr/sbin etc.. I cant get it to work with a script.. I know the path isn't right though.. Is there a program or command to in out the path?
Thanks a lot guys!
-
You will have to get that information from your server, cause there are different paths according to each server.
The most used methods are cgiemail or formmail.
cgiemail
------------
cgiemail is a CGI to E-Mail gateway. It accepts the results of a form, and uses a template file to build and construct an e-mail message containing those results. This makes it considerably more flexible than FormMail.
To use cgiemail, you must first construct a form for site visitors to use to send you information. If you have a Virtual or Vanity Domain, the opening tag of the form must be:
<FORM METHOD="POST" ACTION="/cgi-sys/cgiemail/template.txt">
If you do not have a domain, or if you are using SSL and do not have your own secure certificate, you must use:
<FORM METHOD="POST" ACTION="/cgi-sys/cgiemail/username/template.txt">
In either case, cgiemail will automatically find your Web directory and look there (or in a subdirectory you specify) for the template file.
-----------------------------------
formmail
Sample usage:
<FORM METHOD="POST" ACTION="/cgi-sys/formmail.pl">
<INPUT TYPE="hidden" NAME="recipient" VALUE="you@example.com">
...other form fields go here...
<INPUT TYPE="submit" VALUE="Submit">
<INPUT TYPE="reset" VALUE="Reset">
</FORM>
The following fields can be defined for formmail.pl; only the recipient field is required:
recipient (required)
This field specifies the destination e-mail address for the form contents. Example:
<INPUT TYPE="hidden" NAME="recipient" VALUE="address@domain.com">
--------------------------------------------
-
Blood elf, or PHP guru... hmmm
Not to sound extremely stupid...
woah boy.. not to sound extremely stupid.. I should know the path.. I host my own site off of an Apache server. I dont though. Is there a program, or how can i find it out?
thanks a million..
-c.k.
-
HOWTO find sendmail on your system
The best way to do that is:
$> find / -name sendmail
usually it is at /usr/lib/sendmail but that depends on
your operating system.
hope that helps!
-
Blood elf, or PHP guru... hmmm
Thanks for your reply.. I'm having a dumb day (year)..
how exactly do i do the find that you mentioned? I'l lost..
Thanks again man..
-c.k.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|