I had same problems when changing from Zend Core to Zend server.

I found:

in /usr/local/zendsvr/etc/php.ini

set the ip of a mail server instead of localhost

[mail function]
; For Win32 only.
;SMTP = localhost
; smtp must be ip of mail server, not AS/400
SMTP = 172.26.159.151
smtp_port = 25


and try this script after replacing ip and mail.
The ini_set is used to temp. setting the ip.

<?php
ini_set("SMTP", "172.26.159.151");
$result = mail('yourmail@xxxxxxxxxxxxxx',
'Subject: Test PHP Mail', 'Testing PHP mail', 'From: xxxx@xxxxxxxxxxxxxxx');

?>


-----Original Message-----
From: web400-bounces@xxxxxxxxxxxx [mailto:web400-bounces@xxxxxxxxxxxx] On Behalf Of BButterworth@xxxxxxxxxxxxxx
Sent: Thursday, March 17, 2011 9:45 PM
To: web400@xxxxxxxxxxxx
Subject: [WEB400] PHP mail() function

Hello Everyone,

Does anyone know if this function is supported on IBM i running Zend
Server 5.0.4? I've been doing some research, but am not finding anything.
I did see that apparently it was not supported under Zend Core. If not,
any suggestions for an alternative? We have a Domino mail server and are
currently running 6.1 with PHP 5.3.3, if that is of any use.

Thanks,
Blake

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.