Sprintf (buf, "MAIL FROM: & lt;" "18252065015 @163.com" "& gt; \r\n");
//send (sockfd, "E-mail from: & lt;" "18252065015 @163.com" "& gt; \ r \ n ", 150, 0);
Send (sockfd, buf, strlen (buf) + 1, 0).
Memset (rbuf, 0150);
The recv (sockfd, rbuf, 1500, 0);
Cout<" Set the Mail From the Receive: "& lt;
//RCPT TO the first recipient
Sprintf (buf, RCPT TO: & lt; "" "18252065015 @163.com" "& gt; \r\n");
//sprintf (buf, "RCPT, & lt; % s> \ r \ n ", email);
//send (sockfd, buf, strlen (buf) + 1, 0).
Int ab=send (sockfd, buf, strlen (buf) + 1, 0).
Memset (rbuf, 0150);
The recv (sockfd, rbuf, 1500, 0);
Cout<" Tell Sendto Receive: "& lt;
Then the output of the program here is:
CodePudding user response:
Come and great spirit to solve, is after RCPT, the server is not responding, or format is wrong, but the format is not soCodePudding user response:
Control protocol, and then is caught, see what's wrongCodePudding user response:
Nobody can help you help yourselfCodePudding user response:
Caught? Don't know how to catch,,,