php contact form not sending data

 
Post new topic   Reply to topic    Aprelium Forum Index -> PHP
View previous topic :: View next topic  
Author Message
jasongive
-


Joined: 11 Dec 2013
Posts: 1
Location: ireland

PostPosted: Wed Dec 11, 2013 1:44 pm    Post subject: php contact form not sending data Reply with quote

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 View user's profile Send private message
aprelium-support
-


Joined: 20 Feb 2009
Posts: 356

PostPosted: Fri Dec 13, 2013 9:51 pm    Post subject: Re: php contact form not sending data Reply with 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
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Visit poster's website
Gleedaniel13
-


Joined: 25 Jul 2013
Posts: 22

PostPosted: Thu Dec 19, 2013 1:49 pm    Post subject: Reply with quote

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 View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> PHP All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group