|
|
Mail successfully sent.
but I don't see the email in my inbox. Anyone knows why? (The code isn't mine; I found it on the internet)sendmail_write(sock, "HELO %s\n", from); // greeting
won't worksendmail_write(sock, "HELO %s\n", " null"); // greeting
and see what happens.
|
|
|
|
|
|
|
|
|
|
|
|
Null wrote: |
---|
When I tried to run it on Vista, WSAStartup() failed. |
kbw wrote: |
---|
One would not expect WSAStartup to fail. If it does, you have real system problems. |
Also, on Windows: closesocket(sock); should be: close(sock); |
Also, on Windows: close(sock); should be: closesocket(sock); |
I hate Vista. |
|
|
kbw wrote: |
---|
EDIT: I just noticed you aren't reading replies from the server. How do you know it's happy with you if you don't? |
sendmail_write
function to receive replies from server and this is what I get:220 mx.google.com ESMTP b52sm1293073eei.19 250 mx.google.com at your service 530 5.7.0 Must issue a STARTTLS command first. b52sm1293073eei.19 530 5.7.0 Must issue a STARTTLS command first. b52sm1293073eei.19 530 5.7.0 Must issue a STARTTLS command first. b52sm1293073eei.19 502 5.5.1 Unrecognized command. b52sm1293073eei.19 502 5.5.1 Unrecognized command. b52sm1293073eei.19 502 5.5.1 Unrecognized command. b52sm1293073eei.19 502 5.5.1 Unrecognized command. b52sm1293073eei.19 502 5.5.1 Unrecognized command. b52sm1293073eei.19 554 5.7.0 Too Many Unauthenticated commands. b52sm1293073eei.19 |
|
|
220 mx.google.com ESMTP x54sm1306814eeh.5 250-mx.google.com at your service, [213.130.222.250] 250-SIZE 35651584 250-8BITMIME 250-STARTTLS 250 ENHANCEDSTATUSCODES 220 2.0.0 Ready to start TLS |
connecting to 74.125.79.109 ... Connection established 220 mx.google.com ESMTP b52sm3292725eei.19 EHLO 250-mx.google.com at your service, [83.178.83.189] 250-SIZE 35651584 250-8BITMIME 250-STARTTLS 250 ENHANCEDSTATUSCODES STARTTLS 220 2.0.0 Ready to start TLS MAIL FROM: Session closed |