用delphi6编写发送email,如何解决认证问题!!!!!!!!!!!!

解决方案 »

  1.   

    曾经看过一篇文章,利用delphi的NMSMTP 作 ESTMP认证,远离很简单,就是自己添加几步手工认真的分析代码。
    你只要了解 普通smtp和esmtp的认证区别就行了。
      

  2.   

    其实很简单的:在delphi中有自带的控件
    在indy clients选项卡中用idsmtp控件即可,具体用法和smtp控件差不多
      

  3.   

    tidmessage ㎝tidsmtp北ン.
    procedure Tform1.SendEmail;
    begin
    SMTP.AuthenticationType := atLogin
    SMTP.UserID := [email protected];//ノめ
    SMTP.Password := **********;//盞絏
    {General setup}
    SMTP.Host := SMTP.263.net;
    SMTP.Port := 25;
      try
       SMTP.Connect;
       except
        Showmessage('硈钡SMTP狝叭竟ア毖!');
        Exit;
        end;
     try
       with IdMsgSend do
        begin
         body.Clear;
         Body.Add('hello world');//ず甧
         From.Text := '[email protected]';
         Recipients.EMailAddresses :='[email protected]'//Μン
         Subject:='ρね,舘'//肈
       end;
      SMTP.Send(IdMsgSend);
      finally
      SMTP.Disconnect;
      end;
    end;