I have been at this for about 5 hours and I really don't want to be girlie but I am ready to burst into tears. I have completed and published a website for a local business and have tried all manner of ways to get the contact form and formloom to work and they just won't, no matter how much I try different settings. When I tested it on my server, before transferring everything went perfectly. Now I am getting the message from the contact form to say it has been sent, but nothing in email. The form loom form comes up with an error in processing. I am so frustrated with this (sorry, I know I am not the first, from searching the forum). The server is
I have pulled up some info from the hosting site
EXAMPLE: 'FORM TO MAIL' SCRIPT USING PHP (LINUX ONLY)
Important You are responsible for the misuse of any scripts on your website. See our article Securing your web scripts for further details.
This article gives an example of how to use a PHP script to take input from a feedback form and send it to you in an email message.
Note: PHP pages will not work if placed in cgi-bin. They need to be in the htdocs directory.
The following example uses a PHP script to take input from a feedback form and send it to you in an email message.
First of all, you need a form to receive the data, e.g. Feedback.php:
The form asks the visitor for his/her email address (via the email field above) and message (via the message field above), and invites the visitor to click a button to submit the contents of the form. When the form is submitted, it is 'posted' to a script named sendmail.php. Next, you need to create the sendmail.php script, using the facilities available in PHP, e.g.
When the form is submitted to sendmail.php, the contents of the email field in the form are inserted into a PHP variable called $email, and the contents of the message field are inserted into the variable $message. The script calls a special function called mail, which takes care of the actual dispatch. The first parameter to mail is the address to which you want the form contents sent, in this case your own email address. The second parameter is the subject of the email message, the third is the content of the message, and the fourth is the "From" header so that you know who the sender is, and can reply.
In order for the script to work, you need to specify, via a fifth -f parameter, the domain from which the mail is being sent(-firstname.lastname@example.org). The PHP component uses SMTP (Simple Mail Transfer Protocol), and all StreamlineNet SMTP servers have filters which ensure that the data returned by either the first or fifth mail parameter relates to one of your domains hosted by StreamlineNet. The final part of the script thanks the visitor for the message. This is done by sending an HTTP header back to the visitor's browser telling it to load a file called thankyou.html from your domain. The /header/function allows you to send any HTTP header back to the browser.
Note: The script has to be enclosed within the
"To live only for some future goal is shallow. It''s the sides of the mountain that sustain life, not the top" ancient quote - Robert Pirsig