iEntry 10th Anniversary Forum Rules Search
WebProWorld
Register FAQ Calendar Mark Forums Read
Graphics & Design Discussion Forum Post your graphics design questions/comments/ideas in here. Ask questions, post tutorials, discuss trends and best practices. Sub-forum for website accessibility and usability.

Share Thread: & Tags

Share Thread:

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-01-2006, 12:18 AM
WebProWorld New Member
 
Join Date: Dec 2003
Location: Brisbane, Australia
Posts: 14
whatever RepRank 0
Default Form problems using Visual Form Mail

Hi,
I am having difficulties getting my form to operate on a new site and I cannot get support from Visual Form Mail during the holiday break.
The cgi code appears correct along with permission at 755 and the html script for the form is correct( I think)
I suspect the path to sendmail is incorrect
I have a Linux server and cPanel where it says Path to sendmail /usr/sbin/sendmail. I have seen other mail programs that require some change to the sendmail path in the cgi script.
The page is http://www.familyhistoryarticles.com/contacts.php
Can any one offer and suggestions? Thank you.
Reply With Quote
  #2 (permalink)  
Old 01-02-2006, 09:03 AM
Faglork's Avatar
WebProWorld Veteran
 
Join Date: Feb 2005
Location: Forchheim, Germany
Posts: 936
Faglork RepRank 1
Default

- do you get any error messages?
- did you check your server error log?

faglork
Reply With Quote
  #3 (permalink)  
Old 01-02-2006, 05:16 PM
WebProWorld New Member
 
Join Date: Dec 2003
Location: Brisbane, Australia
Posts: 14
whatever RepRank 0
Default

Hi Faglork,

I do not get any error message, nor any errors in the server error log. The email just does not arrive in my inbox. The email system works normally though.
Reply With Quote
  #4 (permalink)  
Old 01-03-2006, 06:56 PM
WebProWorld New Member
 
Join Date: Dec 2003
Location: Brisbane, Australia
Posts: 14
whatever RepRank 0
Default

Fixed! Coding error. Thank you
Reply With Quote
  #5 (permalink)  
Old 01-03-2006, 08:27 PM
WebProWorld New Member
 
Join Date: Jul 2004
Location: http://www.digitalmedia-productions.com
Posts: 7
pabloroberto RepRank 0
Default

Whatever

You might also want to consider FormMail available at www.tectite.com. Since you are already using php pages this php script works very nicely and can also help to hide your email addresses from spam bots, send to multiple emails, use multiple forms etc. It is available as a free download.http://www.tectite.com
Reply With Quote
  #6 (permalink)  
Old 01-03-2006, 08:46 PM
DrTandem1's Avatar
WebProWorld 1,000+ Club
 
Join Date: Oct 2003
Location: Encinitas, CA
Posts: 1,830
DrTandem1 RepRank 2
Default

Just a word of warning for those of you hand-coding. Many form scripts such as this on CGI and PHP are being hijacked to turn your site into a spam email server. You need to be sure to strip code from the form that a user may enter that would produce line breaks and Cc mailings.

I would also suggest to block attempts at people entering invalid email addresses and email addresses that use your site's own domain.

Lastly, I think the PHP versions are superior to CGI and simpler to use.
__________________
DrTandem's San Diego Web Page Design, drtandem.com
Reply With Quote
  #7 (permalink)  
Old 01-04-2006, 06:18 AM
Faglork's Avatar
WebProWorld Veteran
 
Join Date: Feb 2005
Location: Forchheim, Germany
Posts: 936
Faglork RepRank 1
Default

Quote:
Originally Posted by DrTandem1
Just a word of warning for those of you hand-coding. Many form scripts such as this on CGI and PHP are being hijacked to turn your site into a spam email server. You need to be sure to strip code from the form that a user may enter that would produce line breaks and Cc mailings.

I would also suggest to block attempts at people entering invalid email addresses and email addresses that use your site's own domain.
Words of wisdom! But this also is true for almost all freely available formmail scripts, if you check the code, there is no parameter checking at all. How about a list of secure formmail scripts?

I can suggest two:
http://nms-cgi.sourceforge.net/scripts.shtml (PERL)
http://www.stadtaus.com/en/php_scripts/formmail_script/ (PHP)

Both have a bunch of security features, I have used them for quite a while and they seem OK (i.e. I had no spamming problems so far).

I had a look at the source of the tectite script mentioned above and it looks okay as well.


But keep in mind: 100% security is almost impossible.

Your suggestions / experience?

faglork
Reply With Quote
  #8 (permalink)  
Old 01-04-2006, 04:14 PM
DrTandem1's Avatar
WebProWorld 1,000+ Club
 
Join Date: Oct 2003
Location: Encinitas, CA
Posts: 1,830
DrTandem1 RepRank 2
Default

One other suggestion I offer is not to name the files you use for scripts in such a way that it identifies that it is an email script. For instance, many scripts are named something like sendmail.php. Just name it something else that has no such connotation. Be sure that the associated forms have the script named to match.
__________________
DrTandem's San Diego Web Page Design, drtandem.com
Reply With Quote
Reply

  WebProWorld > Site Design > Graphics & Design Discussion Forum

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 07:53 PM.



Search Engine Optimization by vBSEO 3.3.0