Jump to content
  • Advertisement
Sign in to follow this  
Dooms_day

c++ email sending program with username/pass box problem!

This topic is 4834 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

i got this code: #define _CRTDBG_MAP_ALLOC #include <windows.h> #include <stdio.h> #include <crtdbg.h> void EmailExample(void) { mailman.put_SmtpHost("smtp.comcast.net"); // Create the email, add the body, recipients, subject, etc. CkEmail email; email.put_Body("This is a test\r\nThis is line #2"); email.AddTo("Dooms_day","dooms_day704@yahoo.com"); email.put_FromAddress("chriscool7@comcast.net"); email.put_Subject("This is a test"); // Send the email if (!mailman.SendEmail(&email)) { mailman.SaveLastError("errors.xml"); } } int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) { freopen("stdout.txt","w",stdout); EmailExample(); CkSettings::cleanupMemory(); _CrtDumpMemoryLeaks(); return 0; } but i need a code that makes a windows window, it has some text at the top, it has a username box with the word "Username" and a password box with "Password" next to it. then theres a submit button that runs this code but it inserts the username and pass into the body of it. can anyone give me the code for that?

Share this post


Link to post
Share on other sites
Advertisement
Agreed... this looks rather suspect (not to mention more appropriate for the For Beginners forum). I'm closing this now. PM me within the next 24 hours as to what your intentions with this code were.

Share this post


Link to post
Share on other sites

This topic is 4834 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Guest
This topic is now closed to further replies.
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!