Hallo liebe Community,
ich habe folgendes Problem: Ich will mir von einem anderen pc eine e-mail schicken lassen um zu wissen wie viele meine Script benutzen, aber ich bekomm immer
Fehlercode 52
#include <INet.au3>
$s_SmtpServer = "smtp.1und1.de"
$s_FromName = "name"
$s_FromAddress = "name@online.de"
$s_ToAddress = "name@online.de"
$s_Subject = "Script"
Dim $as_Body[1]
$as_Body[0] = "Ein weitere user....."
$Response = _INetSmtpMail($s_SmtpServer, $s_FromName, $s_FromAddress, $s_ToAddress, $s_Subject, $as_Body)
$err = @error
If $Response = 1 Then
MsgBox(0, "Erfolg!", "Die E-Mail wurde versandt")
Else
MsgBox(0, "Fehler!", "Das versenden der E-Mail schlug fehl. Fehlercode: " & $err)
EndIf
Hier die hilfe dazu, aber die bringt mich nicht weiter....
Function _INetSmtpMail_INetSmtpMail Sends an email without using an external email program.
#include <INet.au3>
_INetSmtpMail ( $s_SmtpServer, $s_FromName, $s_FromAddress, $s_ToAddress [,$s_Subject [,$as_Body [,$s_helo, [,$s_first [,$b_trace]]]]])
Return Value
On Success - Returns 1
On Failure - Returns 0 and sets:
@ERROR = 1 - Invalid Parameters
@ERROR = 2 - Unable to start TCP
@ERROR = 3 - Unable to resolve IP
@ERROR = 4 - Unable to create socket
@ERROR = 5x - Cannot open SMTP session. x indicates the index number of last command issued to the SMTP server.
@ERROR = 50x - Cannot send body. x indicates the line number of $as_Body (first line is 0).
@ERROR = 5000 - Cannot close SMTP session
Cannot open SMTP session. x indicates the index number of last command issued to the SMTP server.
was bedeutet das?
Vielen Dank schon mal
Xdsanny