× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



I too am glad the function is working now so thank you for letting us know. Just so I can sleep tonight I want to add one more point to this thread.

One other reason a mail function may not work, at first, is the IP restrictions that can be setup on the mail server and also in the LAN. When I was working as an IT director we strictly controlled any server or IP from accessing the mail server directly. This inhibited the ability for rogue members of the company from turning the mail server into a spam relay.

The Zend website also has a few Knowledgebase articles on the subject that you discovered:

Zend Core: http://www.zend.com/en/search?engine=kb&query=mail+&sb=Go
Zend Server: http://kb.zend.com/index.php?View=entry&EntryID=427

And, of course, check to see if you have support, either directly from Zend or via the IBM Zend partnership Silver support and open a ticket. Forums are great, but support works too :-)

Have a great weekend all!

Mike

mike.p@xxxxxxxx   Cell: (408)679-1011    Office: (630)928-1476

Zend Server for IBM i available at http://www.zend.com/en/products/server/zend-server-5-new-ibmi


-----Original Message-----
From: web400-bounces@xxxxxxxxxxxx [mailto:web400-bounces@xxxxxxxxxxxx] On Behalf Of BMay@xxxxxxxxx
Sent: Friday, March 18, 2011 8:40 AM
To: Web Enabling the AS400 / iSeries
Cc: web400@xxxxxxxxxxxx; web400-bounces@xxxxxxxxxxxx
Subject: Re: [WEB400] PHP mail() function

Glad you got it working. Yes, you did need to set up your mail server in
your php.ini server and, yes, you have to bounce Zend Server if you modify
the php.ini file. So it sounds like you were almost there before.

As for the links, yes the mail() function was missing in the very first
release of Zend Core and the beta releases of Zend Server. It is fully
functional in the final products.

Brian May
Project Lead
Management Information Systems
Garan, Incorporated
Starkville, Mississippi



BButterworth@xxxxxxxxxxxxxx
Sent by: web400-bounces@xxxxxxxxxxxx
03/18/2011 08:32 AM
Please respond to
Web Enabling the AS400 / iSeries <web400@xxxxxxxxxxxx>


To
web400@xxxxxxxxxxxx
cc

Subject
Re: [WEB400] PHP mail() function






Brian,

I got the impression or was wondering whether it worked because searching
around, I found these links:

http://alanseiden.com/articles/zend-brings-php-to-ibm-i5os.html
http://forums.zend.com/viewtopic.php?f=77&t=5151&hilit=mail

Of course, one is for early Zend Core and in the other, Zend Server beta
is mentioned. When I initially looked in the php.ini, I found this:

[mail function]
; For Win32 only.
SMTP = localhost
smtp_port = 25

Maybe it should say "For Win32 and IBM i only." In any event, I changed it

to reference our SMTP server, and it didn't work. In hind sight, that may
have occurred because I didn't cycle Zend Server. We decided to revamp our

website based on a PHP-based CMS and due to time constraints, contracted
the work out. So I am still learning the ins and outs of PHP on IBM i.
Even still, it has been a smooth transition and PHP seems to work great on

the system. After more trial and error, we did get the mail() function
working, though the contact module of our CMS was still not functioning. I

see it is today, so our developer must have figured the problem out last
night. Thanks to everyone who responded.

Blake

Blake Butterworth | Senior Programmer Analyst | Kansas Turnpike Authority
| 9401 E Kellogg | Wichita, KS 67207 | (316) 652-2740

Where did you see that it wasn't supported. I don't remember anything
of
the sort. In fact, I'm pretty sure I have used mail() on Zend Core.

As for alternatives, you could use the Zend_Mail component of Zend
Framework. http://framework.zend.com/manual/en/zend.mail.html

Brian May
Project Lead
Management Information Systems
Garan, Incorporated
Starkville, Mississippi

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.