smtp server authentication
-
i m sending a mail using SMTP... But i want to authenticate my smtp server can anybody just tell me how to use AUTH LOGIN command in vc++ i m sending HELO Command like this..... TCHAR local_host[ 80 ]; gethostname( local_host, 80 ); sHello.Format( "HELO %s\r\n", local_host ); m_wsSMTPServer.Send( (LPCTSTR)sHello, sHello.GetLength() ); if( !get_response( GENERIC_SUCCESS ) ) { m_wsSMTPServer.Close(); return FALSE; } after these lines of code i want to authenticate my server do we paas username n password with AUTH LOGIN command only Can somebody send me the line of code aur just explain me the method of doing so thanxs in advance...
-
i m sending a mail using SMTP... But i want to authenticate my smtp server can anybody just tell me how to use AUTH LOGIN command in vc++ i m sending HELO Command like this..... TCHAR local_host[ 80 ]; gethostname( local_host, 80 ); sHello.Format( "HELO %s\r\n", local_host ); m_wsSMTPServer.Send( (LPCTSTR)sHello, sHello.GetLength() ); if( !get_response( GENERIC_SUCCESS ) ) { m_wsSMTPServer.Close(); return FALSE; } after these lines of code i want to authenticate my server do we paas username n password with AUTH LOGIN command only Can somebody send me the line of code aur just explain me the method of doing so thanxs in advance...