The user must provide that nugget of information. One way to do it would be
to put a checkbox on the screen that says "Use Authentication", and set the
action accordingly. This should be straightforward Delphi.
Rainer
To get you started ...
if UseAuthenticationBox.Checked then begin
SMTP.AuthenticationType := atLogin;
SMTP.Username := UserNameEdit.text;
SMTP.Password := PasswordEdit.text;
end else begin
SMTP.AuthenticationType := atNone;
end;
----- Original Message -----
From: "Alan Colburn" <[EMAIL PROTECTED]>
To: "Borland's Delphi Discussion List" <[email protected]>
Sent: Friday, November 11, 2005 4:53 PM
Subject: Re: Mail Clients & Authentication
> Hi all --
>
> I'm trying to make an e-mail client. Thanks to Rainer, and others on this
> list, I've got a better sense of authentication. Some servers require
> authentication, others do not. I guess this is something often dealt with
> as a user setting--when setting up an e-mail program, the user enters
> whether or not the server requires authentication.
>
> Is there any way around this? Is there a way to code that says,
> essentially, 'if the server requires authentication then
> AuthenticationType:=atLogin else AuthenticationType:=atNone'?
>
> Thanks, in advance -- Al
>
>
>
>
_______________________________________________
Delphi mailing list -> [email protected]
http://www.elists.org/mailman/listinfo/delphi