You ought to be able to craft a little shell script (you'll call it
"sendmail") and put it in the /usr/bin/ directory. The script would take
the parameters and call SNDDST command. You'll have to have SMTP
configured as a TCP service on the i machine. You could get more
elaborate and write a program that calls the QtmmSendMail API.
Here's a nice article and code for doing that written by Scott Klement.
http://systeminetwork.com/article/sending-e-mail-qshell-and-pase-scripts
He's written a nice utility (in RPG, by the way) that emulates sendmail.
His article references it at /qsys.lib/scott.lib/mailsend.pgm. You could
put a shortcut (soft link) at /usr/bin/sendmail that references
/qsys.lib/scott.lib/mailsend.pgm. php would never know the difference.
-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx
[mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Jim Franz
Sent: Thursday, February 26, 2009 9:46 PM
To: MIDRANGE-L@xxxxxxxxxxxx
Subject: php email script
Did Zend/IBM make avail a version of sendmail support sending email to a
server requiring authentication (user & pwd)
V5R4 system - a tiny model 800
Running some php scripts in Apache
Do not have any tool stuff loaded (Zend or any others) Trying to get a
simple email out the door from a php based "contact" screen.
Developer's php using a tool called Form2Mail, which came in
Dreamweaver. It is looking for /usr/sbin/sendmail I need the simplest
way to make this work or a similar tool for same effect.
Customer will not commit to going forward till email works...
Email hosted by isp and requires authentication.
I know I have asked this before. I'm not the php developer, but I've got
to make the iSeries work for this. No other server in network.
Zend and other php lists full of "try this..", "should work", and it
works and doesn't work in the Zend Framework. Very Confusing.
Jim Franz
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe,
unsubscribe, or change list options,
visit:
http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take a
moment to review the archives at
http://archive.midrange.com/midrange-l.
As an Amazon Associate we earn from qualifying purchases.