I create an SMTP server and i have to read from keyboard the subject and then send it, the client found whet the subject is only 1 word, but when are spaces doesnt send anything, anyone can help me?
printf("Insert the subject:\n");
scanf("%s",sub);
strcat(sub,"\r\n");
send_socket("Subject: ");
send_socket(sub);