Jump to content


Photo

SMTP server in php with fsocket()


  • Please log in to reply
4 replies to this topic

#1 Picatta

Picatta
  • Members
  • PipPip
  • Member
  • 14 posts

Posted 20 July 2006 - 04:55 AM

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. 


#2 Picatta

Picatta
  • Members
  • PipPip
  • Member
  • 14 posts

Posted 20 July 2006 - 09:58 PM

*bump*

Would it be similar to using telnet to send mail?

#3 hitman6003

hitman6003
  • Members
  • PipPipPip
  • Advanced Member
  • 1,807 posts

Posted 21 July 2006 - 01:13 AM

yes

#4 Picatta

Picatta
  • Members
  • PipPip
  • Member
  • 14 posts

Posted 25 July 2006 - 04:51 AM

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.

#5 trq

trq
  • Staff Alumni
  • Advanced Member
  • 31,041 posts

Posted 25 July 2006 - 05:20 AM

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.

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 this usefull. It refers to sockets in C, but php's much the same.

You might also find nanoserv 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.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users