Autor Beitrag
scrooge
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 200



BeitragVerfasst: Do 15.04.04 16:34 
Tag,

brauche eine Proc die prüft, ob eine E-Mailadresse valide ist. Dazu würe ich gern wissen, ob es da vielleicht auch Zeichen gibt, de in keiner E-Mail adresse vorkommmen dürfen.

Könnte mir jemand ne List geben ??

Schonmal danke im Vorraus !
MathiasH
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 699

WinXP, Win98SE, Debian, Win95
D5 Stand, D6 Prof
BeitragVerfasst: Do 15.04.04 19:04 
meines wissens nach gehen bei mailadressen prinzipiell recht viele Zeichen (z.T. auch sonderzeichen), jedoch blockieren die meißten provider diese (Vermutung basiert darauf, dass bei verschiedenen Providern verschieden viele erlaubt sind, bei meiner Seite hingegen hatte ich bisher noch garkeine Probs mit sonderzeichen in emailadressen)

_________________
"Viel von sich reden, kann auch ein Mittel sein, sich zu verbergen."
Friedrich Nietzsche
matze
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: Do 15.04.04 20:45 
also ich nehme immer diese funktion her:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
function IsEMail(EMail: String): Boolean;
var
  s    : String;
  ETpos: Integer;
begin
  ETpos:= pos('@', EMail);
  if ETpos > 1 then
  begin
    s:= copy(EMail,ETpos+1,Length(EMail));
    if (pos('.', s) > 1and (pos('.', s) < length(s)) then
      Result:= true else Result:= false;
  end
  else
    Result:= false;
end;

_________________
In the beginning was the word.
And the word was content-type: text/plain.
scrooge Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 200



BeitragVerfasst: Do 15.04.04 22:24 
Sonderzeichen aber eben nur zum Teil. Z.B glaube ich nicht, dass sowas wie zwei @ Zeichen erlaubt sind.
Wie stehts da mit ()/[]{}%&$?ß\§"!^°<>|€:;_+*~#'=´` ?? (also alle Zeichen grob gesagt die nicht Buchstaben und Zahlen sind).
matze
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: Fr 16.04.04 10:52 
sind glaub ich nicht erlaub. das wird mit dem code nicht überprüft !

_________________
In the beginning was the word.
And the word was content-type: text/plain.
neojones
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1206
Erhaltene Danke: 1



BeitragVerfasst: Fr 16.04.04 13:27 
Als eMail-Adresse geht bei mir nur Zeug durch, das A-Z, a-z, 0-9, ".", "-", "_" enthält. Alles andere fliegt raus.

_________________
Ha! Es compiliert! Wir können ausliefern!
scrooge Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 200



BeitragVerfasst: Fr 16.04.04 15:25 
Dankeschön !! Ich nehm jettzt einfach die Zeichen, die im letzten Post genannt wurden.