Pages: [1]
|
 |
|
Author
|
Topic: Senmail Help (Read 1205 times)
|
|
patientp
|
Hello, I have a form on my site that I want to use sendmail for the submit action. I see that the path to send mail is : /usr/sbin/sendmail But to be honest I am not sure what additional information is needed in my form to make this work. I use Dreamweaver 2004 MX for my editor. Here is the form action that I have in my form now, but it does not work:  <form action='../usr/sbin/sendmail[address] service@patientprofessor.com' method='post' enctype='multipart/form-data' name="Results" target="_blank" class="blue" id="Results"> Thanks for your help, Bob Miller
|
|
|
|
|
Logged
|
|
|
|
|
RV Guy
|
Hi Bob,
The location of sendmail is important mostly in Perl, and it's used in scripting when sending e-mail via the script. A format for sending e-mail directly from a form is:
<form action=mailto:your@email.address method="POST" enctype="text/plain">
However, it's really not recommended to send form data this way. The reasoning is that this method is browser-dependent and will most likely not work 100% of the time. And the browser will encode the form data when it sends it, so you will need to decode the data when you receive it.
The best way is a form-to-email script in PHP or Perl. There are many good, free scripts available on the internet, just be sure you get a "secure" script; spammers and hackers love the unsecure ones !! Let the server do the work of sending e-mail, not the user's PC.
Hope this helps, and have a blessed day.
RV Guy
|
|
|
|
« Last Edit: January 05, 2006, 04:29:26 AM by RV Guy »
|
Logged
|
|
|
|
|
Pages: [1]
|
|
|
 |