Email Proble

  • Hallo ich wollte ein Mail Programm machen und habe als erstes mal die Beispieldatei zu _INetSmtpMail gestartet. Nun ist allerdings das Problem das die Email schon im Beispiel nicht gesendet wird. wodran kann das liegen?

    [autoit]

    #include <INet.au3>
    #RequireAdmin

    [/autoit][autoit][/autoit][autoit]

    $s_SmtpServer = "mail.gmx.net"
    $s_FromName = "My Name"
    $s_FromAddress = "versender@gmx.net"
    $s_ToAddress = "empfänger@web.de"
    $s_Subject = "My Test UDF"
    Dim $as_Body[2]
    $as_Body[0] = "Testing the new email udf"
    $as_Body[1] = "Second Line"
    $Response = _INetSmtpMail ($s_SmtpServer, $s_FromName, $s_FromAddress, $s_ToAddress, $s_Subject, $as_Body)
    $err = @error
    If $Response = 1 Then
    MsgBox(0, "Success!", "Mail sent")
    Else
    MsgBox(0, "Error!", "Mail failed with error code " & $err)
    EndIf

    [/autoit]

    hoffe auf hilfe mfg killax2x