Click here to Skip to main content
15,917,795 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRussian string to/from file Pin
Bartosz Bien16-Jul-03 3:41
Bartosz Bien16-Jul-03 3:41 
GeneralRe: Russian string to/from file Pin
Ryan Binns16-Jul-03 4:11
Ryan Binns16-Jul-03 4:11 
GeneralGet Number of Logical Processors Pin
Nathan Blomquist16-Jul-03 3:41
Nathan Blomquist16-Jul-03 3:41 
GeneralRe: Get Number of Logical Processors Pin
valikac16-Jul-03 4:46
valikac16-Jul-03 4:46 
GeneralRe: Get Number of Logical Processors Pin
Nathan Blomquist16-Jul-03 7:41
Nathan Blomquist16-Jul-03 7:41 
GeneralRe: Get Number of Logical Processors Pin
basementman16-Jul-03 4:55
basementman16-Jul-03 4:55 
GeneralRe: Get Number of Logical Processors Pin
Nathan Blomquist16-Jul-03 7:41
Nathan Blomquist16-Jul-03 7:41 
GeneralRe: Get Number of Logical Processors Pin
Nathan Blomquist17-Jul-03 6:48
Nathan Blomquist17-Jul-03 6:48 
GeneralDeclaration Question Pin
Brian van der Beek16-Jul-03 3:23
Brian van der Beek16-Jul-03 3:23 
GeneralRe: Declaration Question Pin
Ryan Binns16-Jul-03 4:07
Ryan Binns16-Jul-03 4:07 
GeneralRe: Declaration Question Pin
Brian van der Beek16-Jul-03 4:54
Brian van der Beek16-Jul-03 4:54 
GeneralRe: Declaration Question Pin
Ryan Binns16-Jul-03 4:59
Ryan Binns16-Jul-03 4:59 
GeneralCWebBrowser2 scrollbar question. Pin
Maximilien16-Jul-03 3:16
Maximilien16-Jul-03 3:16 
GeneralKeyboard indicator problems Pin
Artem Moroz16-Jul-03 3:16
Artem Moroz16-Jul-03 3:16 
GeneralProblem with WM_CTLCOLOR Pin
Cheickna16-Jul-03 2:56
Cheickna16-Jul-03 2:56 
GeneralRe: Problem with WM_CTLCOLOR Pin
Ryan Binns16-Jul-03 3:01
Ryan Binns16-Jul-03 3:01 
GeneralRe: Problem with WM_CTLCOLOR Pin
wb16-Jul-03 3:16
wb16-Jul-03 3:16 
QuestionAny effective way to know a process is dead? Pin
anqin15-Jul-03 16:06
anqin15-Jul-03 16:06 
AnswerRe: Any effective way to know a process is dead? Pin
Phil Martin15-Jul-03 17:51
professionalPhil Martin15-Jul-03 17:51 
GeneralSMTP in MFC Pin
DougW4815-Jul-03 15:41
DougW4815-Jul-03 15:41 
I am attempting to send e-mails using SMTP out of an MFC application. I am able to connect to a server just fine, and I receive the opening "greeting" from the server-- 220..... I am using the CSocket class to make my connection to the mail servers, and CArchive classes to pass the information to and from the server. For some reason, after I send the "HELO <server>" message, I am not receiving anything back from the server...which obviously leads me to believe that either I need to send my messages as something different than the CStrings that I am using now, or that I may need to use something other than CArchives to pass my messages. If anybody has had experience using SMTP out of an MFC application and knows what I'm doing wrong, I'd love some help.


Here is the function I am using to pass my HELO greeting to the e-mail servers. arOut and arIn are CArchive objects, and are both pointers that get created when a connection is made to the server. The application is currently waiting forever on the arIn->ReadString( InString ) line, as the server isn't responding to my attempt to pass a string to it.

BOOL SMTP::HELO( )
{
if ( arOut )
{
arOut->WriteString( "HELO SIR" );
arOut->Flush();
if ( arIn )
{
CString InString;
arIn->ReadString( InString );
return TRUE;
}
}
return FALSE;
}

Douglas A. Wright
dawrigh3@kent.edu
GeneralRe: SMTP in MFC Pin
Ryan Binns15-Jul-03 20:44
Ryan Binns15-Jul-03 20:44 
GeneralRe: SMTP in MFC Pin
markkuk16-Jul-03 3:32
markkuk16-Jul-03 3:32 
GeneralRe: SMTP in MFC Pin
Ryan Binns16-Jul-03 4:19
Ryan Binns16-Jul-03 4:19 
GeneralRe: SMTP in MFC Pin
Ravi Bhavnani16-Jul-03 4:08
professionalRavi Bhavnani16-Jul-03 4:08 
GeneralRe: SMTP in MFC Pin
Lhenno Ferrari16-Jul-03 6:44
Lhenno Ferrari16-Jul-03 6:44 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.