View previous topic :: View next topic |
Author |
Message |
jasongive -
Joined: 11 Dec 2013 Posts: 1 Location: ireland
|
Posted: Wed Dec 11, 2013 1:44 pm Post subject: php contact form not sending data |
|
|
I have instaled the abyss server and the php, with all the recomended settings.
With the script parameter to :
fastCGI (local pipes)
interpreter to php-cgi.exe
extensions to php
REDIRECT_STATUS 200
adding index.php file
port 80 and so on ...
When I press submit on my webpage contact form, the php works by redirecting the page fine, but the details dont get sent to my email address!
The php script is :
<?php
$email subject = 'formprocess';
$webmaster = 'myemail address';
$email =$_post['email'];
$password = $_post['password'];
$body = <<<EOD
<br>
Email: $email <br>
Password: $password <br>
EOD;
$headers = "From: $email\r\n";
$headers .= "Content-type: text/html\r\n";
$success = mail($webMaster, $emailSubject, $body,
$headers);
header("Location: index.html");
/* Results rendered as HTML */
<HTML contact form>
Where does abyss store the input fileds from form???
Do I have to change the php.ini file??? |
|
Back to top |
|
|
aprelium-support -
Joined: 20 Feb 2009 Posts: 356
|
Posted: Fri Dec 13, 2013 9:51 pm Post subject: Re: php contact form not sending data |
|
|
jasongive,
It's not Abyss Web Server's fault. It's PHP which is executing your script. You need to configure your SMTP server in php.ini so that the mail() command can send messages correctly.
If your SMTP server requires SSL or authentication, mail() is not sufficient for sending emails. More advanced libraries are available to send emails in that case. _________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
|
Gleedaniel13 -
Joined: 25 Jul 2013 Posts: 22
|
Posted: Thu Dec 19, 2013 1:49 pm Post subject: |
|
|
Quote: | jasongive,
It's not Abyss Web Server's fault. It's PHP which is executing your script. You need to configure your SMTP server in php.ini so that the mail() command can send messages correctly.
If your SMTP server requires SSL or authentication, mail() is not sufficient for sending emails. More advanced libraries are available to send emails in that case.
_________________
Support Team |
I think you should have to know the php program so that some of your questions will be answered. _________________ Web Design Integration |
|
Back to top |
|
|
|