Autor Beitrag
hibbert
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1007

WinServer2003, Win XP, Linux
D6 Pers, D05
BeitragVerfasst: Di 11.09.07 19:06 
Hallo,
ich habe jetzt schon im forum danach gescuht (vllt ja auch nicht gründlich genug) aber ich habe folgendes problem:
ich logge mich auf meinem Mailserver ein und möchte gern mit meinem Programm eine email verschicken.

So sieht das ganze aus:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
{...}
IdSMTP := TIdSMTP.Create(self);
  IdMsg := TIdMessage.Create(self);
  try
    IdSMTP.Host := 'mail.hibbert.de';
     IdSMTP.Username := 'bla bla blubb';
     IdSMTP.Password := '***************';
    IdSMTP.Port := 25;
    IdSMTP.Connect;
{...}
procedure tform1.sendemail(empfanger: string; msg: string,betreff:string);
begin
    IdMsg.From.Address := 'test@hibbert.de'// hier steht meine richtige Emailadresse in Delphi
    IdMsg.Recipients.Add.Address:= empfanger;
    IdMsg.Subject := betreff;
    idMsg.Body.Clear;
    idMsg.Body.Add(msg);
    IdSMTP.Send(IdMsg);
end;


so ist nun der empfänger = test@hibbert.de so wird die email anstandlos verschickt.

trage ich nun aber zb. test@web.de als empfänger ein, so bekomme ich folgende meldung:
Fehlermeldung hat folgendes geschrieben:

Im Projekt Project1.exe ist eine Exception der Klasse EIdProtocolReplyError mit der Meldung '<test@web.de>: Relay access denied
' aufgetreten.


hää? was wie warum...? Warum kann ich denn bitte keien eMail an andere verschicken...?

Kann mir bitte wer helfen, vllt. seh ich ja den Wald vor lauter Bäumen nicht mehr.

danke
hibbert

_________________
I kunnen väl svara endast ja eller nej
Om i viljen eller nej
Narses
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Administrator
Beiträge: 10185
Erhaltene Danke: 1261

W11x64
TP3 .. D7pro .. D10.2CE
BeitragVerfasst: Di 11.09.07 23:21 
Moin!

Vermutlich verlangt der SMTP lediglich eine Authentifikation, wenn er an nicht selbst gehostete Adressen versenden soll. :nixweiss: (ist eine Maßnahme, um Spam einzudämmen - so kann nicht jeder x-beliebige einen Mailserver "missbrauchen")

cu
Narses

_________________
There are 10 types of people - those who understand binary and those who don´t.
hibbert Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1007

WinServer2003, Win XP, Linux
D6 Pers, D05
BeitragVerfasst: Mi 12.09.07 00:04 
ahhhh.... =)
AuthenticationType hat das problem gelöst. ich danke dir für den hinweiß =)

hibbert

_________________
I kunnen väl svara endast ja eller nej
Om i viljen eller nej