I have been working on some code in my spare time. And i was wanting to take the inputted username, password and email address. And send the username + password to the email address.. Below is where i get my username and password etc.
newchar: cout<<"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n";
cout<<"Welcome to new character creation.\n";
cout<<"Please enter a username for your new character.\n";
cin>> username;
outputFile.open("username.txt");
outputFile<< username << endl;
system("quickencrypt-user.exe");
cout<<"Hello " << username << ".\nPlease enter a password for your character.\n";
cin>> password;
outputFile2.open("password.txt");
outputFile2<< password << endl;
system("quickencrypt-psswd.exe");
cout<<"Please enter a valid email address. (Your username and password will be emailed here)\n";
cin>> address
//SENDING OF EMAIL WILL BE DONE HERE
cout<<"Thank you. Please wait while we redirect you back to the main menu.\n";\
Sleep(2500);
cout<<"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n";
goto mainmenu;
What i need help with is how to email the password and username etc to the email address.
Is anybody able to help me here?
This post has been edited by Mujibar: 31 March 2009 - 10:34 PM

New Topic/Question
Reply



MultiQuote






|