Thursday, June 12, 2008

sending mail from the NGW

In the php continuation story I felt the need to add some mail functionality to the NGW. I did some research on lightweight smtp clients and MSMTP came out as perfect candidate to use on the NGW because of his simplicity. No heavy source tree just the basic thing rfc 821 implemented. Cross compilation went smoothly and it's just a single executable to install on the target. I expanded my PHP exercise with this functionality and it worked greatly. I used the popen() PHP function to call msmtp and fed the parameters by file as well as runtime strings both did the job without using a mail agent like mutt or nail. Page can be viewed if NGW is up and running:

http://guyvo.no-ip.biz/php3

I think most of my components are now present on the board and I will carry on with the general proof concept, which was still on the todo list. After that I can begin with my analyzes on the final domotic system. There 're still some other interesting concepts to investigate like inter process communication between the php session and the domotic deamon program but I will take care of these as the analyzes progress. To end this blog let me resume with a list of already installed NGW functionality:

Root FS on SDCARD with swap
OS linux 2.6.24 kernel
µLibc / dev
Busybox shell tools
Web server
Telnet
Ftp
Ssh
Nfs
Samba
Ntp
PHP 5
Smtp client
Extension I2C IO board 40 inputs/40 outputs / 8 dac
Ac97 sound architecture

Yet impressive isn't it ?

No comments: