I would like to use the following the following:
<?php
$to = "sgregory@superdoom.co.za";
$subject = "My Subject";
$txt = "Hello Work";
$headers = "From: peter@superdoom.co.za" ."\r\n" .
"CC:sdanisa@superdoom.com";
mail($to, $subject,$txt,$headers);
?>
The following settings are
[mail function]
; For Win32 only.
; http://php.net/smtp
SMTP = 172.xx.xx.xx
; http://php.net/smtp-port
smtp_port = 25
; For Win32 only.
; http://php.net/sendmail-from
;sendmail_from = sdanisa@superdoom.com
The above script and php.ini configurations resides in Server A, which in the DMZ and it does not have internet connection. I did some research and found out that I need to create a mail server on the Server A which is in the DMZ. Therefore I installed hmailserver.
Server B is a IBM Domino server, which I would like to use to send email.
Regardless of the changes I made, I still get the following common error:
Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\xampp\htdocs\mail\index.php on line 12