printf("\n\nWelcome the mail forgery Process...\n");
printf("\t- After all data is entered, a confirmation entry will be\n\t\tasked for before the actual connection is made.\n\n");
printf("~ Mail will be From (user@address): ");
gets(posedClient);
sscanf(posedClient,"%*[^@]@%s",primaryHost);
printf("~ To (user@address): ");
gets(recipient);
printf("~ Subject: ");
gets(subjectLine);
printf("~ Enter fictitious date (example format: Wed, 15 Feb 1995 15:51:48) or hit\n return to use current time and date: ");
gets(dateString);
printf("~ You may enter a name to precede the from address in the body text\n (ie From: Benedict Arnold <satan@hell>) or hit return to use only the\n address: ");
printf("~ Enter the body below, enter ctrl-d on a blank line to end text entry.\n---------\n");
body = (char *)malloc(2);
sprintf(body,"\n");
while (gets(inputString) != NULL)
{ if (! strcmp(inputString, SMTP_EODATA))
sprintf(inputString,"%s.",SMTP_EODATA);
body = (char *)realloc(body,((strlen(body) + strlen(inputString) + 2) * sizeof(char)));
strcat(body,inputString);
strcat(body,"\n"); }
clearerr(stdin);
printf("\n---------\n~ The application will attempt to contact the default relay server,\n %s, you may enter another machine or hit return now: ", DEFAULTHOST);
gets(relayHost);
printf("\n**This is the last chance to back out.\n\tContinue with the forgery Process (yes/no)? [no]:");