Index: mailto.c --- mailto.c Base (BASE) +++ mailto.c Locally Modified (Based On LOCAL) @@ -315,7 +315,7 @@ cupsFilePrintf(fp, "Content-Type: text/plain%s", nl); cupsFilePuts(fp, nl); cupsFilePrintf(fp, "%s%s", text, nl); - cupsFilePrintf(fp, ".\n", nl); + cupsFilePrintf(fp, ".%s", nl); /* * Close the connection to the mail server... @@ -369,8 +369,9 @@ fputs("DEBUG: QUIT\n", stderr); if (!cupsFileGets(fp, response, sizeof(response)) || atoi(response) >= 500) - goto smtp_error; - fprintf(stderr, "DEBUG: <<< %s\n", response); + fprintf(stderr, "ERROR: Got \"%s\" trying to QUIT connection.\n", response); + else + fprintf(stderr, "DEBUG: <<< %s\n", response); cupsFileClose(fp);