Hi,
I think you have no mail server running on your machine.
I've just testet a mail form on my local machine and I got the same error., which I never had on my linux server. So I checked, If php
on my system was able to send mails, by using the following script:
Code: Select all
<?php
mail("mail@familieschwab.info", "Betreff", $message,
"From: mail@familieschwab.info\r\n" .
"Reply-To: webmaster@{$_SERVER['SERVER_NAME']}\r\n" .
"X-Mailer: PHP/" . phpversion());
?>
And I've got an error message, too. Then I modified the mail topic of my php.ini in the windows directory, restarted apache and the error message was gone.
So this isn't a phpwcms error, it's an error with your local installation of php and the configuration of the smtp mail function.
Due to some limitations you can't use the mail function without an smtp server on your machine or network (found in the php manual
http://de.php.net/manual/en/function.mail.php):
Note: The Windows implementation of mail() differs in many ways from the Unix implementation. First, it doesn't use a local binary for composing messages but only operates on direct sockets which means a MTA is needed listening on a network socket (which can either on the localhost or a remote machine).
So to check the mail forms on a windows machine you will need at least access to an smtp mail server. One i know is integrated in the great proxy server janaserver (
http://www.janaserver.de/) and there is an pop3 server also, so you can send and read the mails locally without an connection to internet.
Hope that helps.
Cheers
KiWiX