Hi, ich habe ein kleines Problem.
Für ein kleines privates Programm muss ich regelmäßig eine Mail an meine eMail bei GMX senden.
Die Vorlage aus der Hilfe funktioniert bei mir nicht so wirklich.
Hier mal der code wie ich ihn aus der Hilfe abgeändert hab:
[autoit]#include <Inet.au3>
[/autoit][autoit][/autoit][autoit]Local $s_SmtpServer = "imap.variomedia.de"
Local $s_FromName = "Michael"
Local $s_FromAddress = "support@herveldia.de"
Local $s_ToAddress = "hyperstorm@gmx.de"
Local $s_Subject = "Bestand"
Local $as_Body[2]
$as_Body[0] = "Testing the new email udf" ;<-- Versteh ich nicht ganz...
$as_Body[1] = "Second Line" ;<-- Versteh ich genauso wenig ![]()
Local $Response = _INetSmtpMail($s_SmtpServer, $s_FromName, $s_FromAddress, $s_ToAddress, $s_Subject, $as_Body)
Local $err = @error
If $Response = 1 Then
MsgBox(0, "Success!", "Mail sent")
Else
MsgBox(0, "Error!", "Mail failed with error code " & $err)
EndIf
Da kommt dann immer: Mail failed with error code 4
Kann mir da jemand helfen wie ich das einstellen muss?