On Wednesday, Jan 21, 2004, at 06:00 US/Pacific, MSullivan wrote: > specifically.. how to negotiatate (or figure out how to negotiate) the > connection to the mail server ? > I have a PIC board with an 802.11b wireless card on it, and I have a > wireless access point router connected to the internet through a cable > modem. I can communicate to the PIC card using a PC with a wireless > card > on it, that goes through the access point (with TCP/IP). How do I > negotiate the connection with the mail sever, from the PIC > board...through > the router? Will I have to send out IP addresses, passwords > etc...... and > what responses will I get and need to respond to? How do I determine > that? I'm sorry, but you need to back up a few steps and learn a bit and learn how the internet "works" at a basic level, especially with respect to the layering of protocols. An SMTP client does not "negotiate a connection" with a mail server; it simply opens a TCP connection, using whatever tcp APIs are provided. the TCP layer handles the negotiation and "connection." A TCP connection does not 'work through a router"; it sends IP packets using internal APIs. The IP layer handles (more or less, using additional protocols like ICMP or ARP) figuring out which router to use. Writing SMTP code is easy; a nice ascii dialog. writing a complete internet stack containing all the layers needed to communicate over an 802.11b card is a major undertaking... BillW -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu