Re: Simple email pop3/smtp source - I get a bind error



As was already pointed out, you don't have to bind, you have to connect to
e-mail server. Look at inmplementation of client at
http://msmvps.com/blogs/v_scherbina/pages/winsock-faq.aspx it will give you
a general hints on how to make a simple tcp client.

--
V.
This posting is provided "AS IS" with no warranties, and confers no
rights.
"Test" <test@.nil.invalid.com> wrote in message
news:vq4e24hfbn35ovkqkt0bvu955dm5gobbs1@xxxxxxxxxx
I need to check the headers fo my email using smtp/pop3

When bind'ing to a mail server I get bind error:

...
h=gethostbyname("mail.whatever.fi");
service.sin_addr.s_addr=inet_addr(inet_ntoa(*((struct in_addr
*)h->h_addr)));
service.sin_port=htons(110);
if (bind(mylistens, (SOCKADDR*)&service, sizeof(service)) == SOCKET_ERROR)
{
blah blah error here
...

I must be doing something wrong. Other FTP/TCP connection go well.

If someone has a very simple C source SMTP/POP3 receive client example I'd
appreciate it.


.



Relevant Pages

  • Re: CORRECTION omniOrb server + java client
    ... virtual char* echoString; ... // Bind the context to root. ... I start this server and if I try to test with c++ client, ...
    (comp.object.corba)
  • Re: How to prevent LDAP simple bind?
    ... Yes indeed if the client wants to put his/her password on the wire, ... Is there a way how I can test if the policy specified in KB 823659 does ... I tried to use LDP utility, but it doesn't do a simple bind even without the ...
    (microsoft.public.win2000.active_directory)
  • Re: How to prevent LDAP simple bind?
    ... Yes indeed if the client wants to put his/her password on the wire, ... Is there a way how I can test if the policy specified in KB 823659 does ... I tried to use LDP utility, but it doesn't do a simple bind even without the ...
    (microsoft.public.windows.server.active_directory)
  • Re: ADAMSync Problems
    ... Are you specifying credentials when you configure the LDAP source in the ... if the client does an LDAP secure bind using the SASL GSS-SPNEGO ...
    (microsoft.public.windows.server.active_directory)
  • NT4, SBS2K3, and me...
    ... I'm in a bit of a bind. ... the SBS2k3 wasn't configured properly at the beginning ... and file and printer sharing. ... the client PCs that would be great. ...
    (microsoft.public.windows.server.sbs)