Hallo,
wieso habe ich keinen Text in meiner email ? Ist $as_Body nicht dafür zuständig ? Ich habe mal den Code mitgeschickt. Alle wichtigen Sachen habe ich entfernt
#include <File.au3>
#include <Array.au3>
#include <Inet.au3>
Global $Pfad = "\\V120\d\Rechnungen\alle_PDF_Rechnungen.txt" ;Pfad zur Textdatei
[/autoit][autoit][/autoit][autoit];Variablen für SMTP Server -> s. Hilfe _INetSMTPMail
$s_SmtpServer = "smtp.server"
$s_PWD = "Passwort" ; Hier muss das Passwort eingetragen werden !!!
$s_FromName = "von der Rechnungsüberwachung"
$s_FromAddress = "email"
$s_ToAddress = "email"
$s_Subject = "fehlende Rechnungen"
Dim $as_Body[2]
$as_Body[0] = "Text,Text text"
$as_Body[1] = "Second Line"
$ashelo = "helo"
Global $aRecords
If Not _FileReadToArray($Pfad, $aRecords) Then
;MsgBox(4096, "Error", " Error reading log to Array error:" & @error)
Exit
EndIf
For $x = 1 To $aRecords[0]
;MsgBox(0, 'Record:' & $x, $aRecords[$x])
_ArrayDisplay($aRecords, "Rechnungen")
_INetSmtpMail($s_SmtpServer, $s_FromName, $s_FromAddress, $s_ToAddress, $s_Subject, $s_PWD, $as_Body, $ashelo, -1)
Exit
Next
[/autoit]