Jump to content

Archived

This topic is now archived and is closed to further replies.

Picatta

SMTP server in php with fsocket()

Recommended Posts

I was wondering about how I would go about sending  simple, one word message via email to someone, using bare sockets, with the fsocket() series.  I'm confused. 

Share this post


Link to post
Share on other sites
I already know I can use mail() to send mail, but that requires use of an smtp server, which is what I'm aiming at using php for.

Share this post


Link to post
Share on other sites
[quote]I already know I can use mail() to send mail, but that requires use of an smtp server, which is what I'm aiming at using php for.[/quote]
Well... its possible, but practical Im not sure. I once wrote a webserver in php, but gave up when I couldn't get php scripting to work.

I know there isn't really a great deal of doc on sockets in php, but I did find [url=http://beej.us/guide/bgnet/output/html/index.html]this[/url] usefull. It refers to sockets in C, but php's much the same.

You might also find [url=http://nanoserv.si.kz/]nanoserv[/url] to be of interest. Its wasn't complete when I was making my server, but a quick glance seems it may be more complete now.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.