Autor Beitrag
Grafix
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 122

Windows 7 Professional
Delphi 2009, PHP, Prolog, Python, Java
BeitragVerfasst: Do 07.05.09 17:56 
Moni,
will eine Mail senden mit der Indy-Komponente. Folgendes Problem:

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
  Text := ELoginseite.Text + ' ' + EEmailadresse.Text + ' ' +  EPasswort.Text; //Text ist vom Typ string

   with IdMessage1 do
      begin
         Body.Assign(Text2)
   <usw.>


ERROR: Incomaptible Types: TPersistent and String

Wie kann ich DAS bitte umwandeln?!?! Hab irgendwo was von AutoAssign() gelesen, aber kA wie man das anwendet...
Xentar
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2077
Erhaltene Danke: 2

Win XP
Delphi 5 Ent., Delphi 2007 Prof
BeitragVerfasst: Do 07.05.09 18:47 
ausblenden Delphi-Quelltext
1:
Body.Text := 'blah';					

_________________
PROGRAMMER: A device for converting coffee into software.
Grafix Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 122

Windows 7 Professional
Delphi 2009, PHP, Prolog, Python, Java
BeitragVerfasst: Do 07.05.09 19:07 
funktioniert =)

aber nochwas, wenn ich einen IdSMTP zum Versenden nutzen will, was für ein Usernamen und Passwort benötigt man dann? Ist das überhaupt notwendig?
(ich versuche folgendes Tutorial: www.delphi-library.d...rschicken_10361.html)
Xentar
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2077
Erhaltene Danke: 2

Win XP
Delphi 5 Ent., Delphi 2007 Prof
BeitragVerfasst: Do 07.05.09 19:24 
user profile iconGrafix hat folgendes geschrieben Zum zitierten Posting springen:
funktioniert =)

aber nochwas, wenn ich einen IdSMTP zum Versenden nutzen will, was für ein Usernamen und Passwort benötigt man dann? Ist das überhaupt notwendig?
(ich versuche folgendes Tutorial: www.delphi-library.d...rschicken_10361.html)

1. Neue Frage = Neues Thema
2. Am besten die Daten, die du für den SMTP Server brauchst? Normalerweise hast du doch nen Benutzernamen, z.B. von GMX oder sowas. Das musst du halt angeben, wenn du über den GMX Server Mails versenden willst.

_________________
PROGRAMMER: A device for converting coffee into software.
Grafix Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 122

Windows 7 Professional
Delphi 2009, PHP, Prolog, Python, Java
BeitragVerfasst: Do 07.05.09 19:27 
(ok, beim Nächstenmal weiß ichs)
aber ich will ja über keinen externen Server gehn. Gehts nicht, dass man einen eigenen Server kurzfristig erstellt? Oder müssen dann tausende Ports usw. Freigegeben werden?
Xentar
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2077
Erhaltene Danke: 2

Win XP
Delphi 5 Ent., Delphi 2007 Prof
BeitragVerfasst: Do 07.05.09 19:31 
user profile iconGrafix hat folgendes geschrieben Zum zitierten Posting springen:
(ok, beim Nächstenmal weiß ichs)
aber ich will ja über keinen externen Server gehn. Gehts nicht, dass man einen eigenen Server kurzfristig erstellt? Oder müssen dann tausende Ports usw. Freigegeben werden?

Dann bräuchtest du wohl noch einen IdSMTPServer.

Nähere Infos dazu
- durch ausprobieren
- über die Forensuche
- deine Lieblingssuchmaschine
- oder wenn alles nicht hilft, in einem neuen Thread.

_________________
PROGRAMMER: A device for converting coffee into software.