SMTP Error
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums
Results 1 to 2 of 2

Thread: SMTP Error

  1. #1
    Join Date
    Aug 2007

    Unhappy SMTP Error

    I had written a programme in VC++ for sending the mails using SMTP.
    It sends the mails to and from the particular domain only.
    I want to send the mail using Rediffmail or Gmail . But its not possible.

    Foll. are the settings for sending the mail from Rediffmail :
    SmtpServerName =
    SmtpServerPort = 25

    If i run the prog. it gives the foll. error for :
    CString sTo;
    sTo.Format( _T( "RCPT TO: <%s>\r\n" ), "");
    m_wsSMTPServer.Send( (LPCTSTR)sTo, sTo.GetLength() );

    m_wsSMTPServer is a object of CSocket.

    The Error is :

    421 Authorization failed: please authenticate by doing get message first

    So for this error I had added Authentication by using following :
    //////Check for authentication
    sLogIn.Format( _T( "AUTH LOGIN: <%s><%s>\r\n" ), "", "12Xy3z");
    m_wsSMTPServer.Send( (LPCTSTR)sLogIn, sLogIn.GetLength() );

    here it give the foll. error :

    502 unimplemented (#5.5.1).

    I really stuck here .I searched a lot, but not succeeded. Any kind of help is much appreciated.

    Thanking you in anticipation.


  2. #2
    Join Date
    Sep 2011
    The Netherlands

    Re: SMTP Error

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Windows Mobile Development Center

Click Here to Expand Forum to Full Width

This is a survey!

HTML5 Development Center