代码如下:只是作了个测试
调试时发现执行在showmessage('连接成功!');是提示成功的
但执行至Send(IdMsgSend);时就提示503 bad sequences of commands
网上也查了但就是没有解决方法,请大侠帮忙        with IdMsgSend do
        begin
            body.Clear;
            Body.Add(suiMemo1.Lines.Text);//内容
            From.Text := '[email protected]';
            Recipients.EMailAddresses :='[email protected]';//收件人
            Subject := Trim(suiEdit5.Text);//主题
        end;
        With SMTP do
        begin
            AuthenticationType := atLogin;
            UserID := Trim(MAIL_USERNAME.Text);//帐户
            Password := Trim(MAIL_PASSWORD.Text);//密码
            Host := Trim(MAIL_SMTP.Text);
            Port := 25;
            try
                Connect;
                showmessage('连接成功!');
                Send(IdMsgSend);
            except
                showmessage('连接失败!');
                exit;
            end;
            Disconnect;
        end;