zappiezap Posted June 14, 2005 Posted June 14, 2005 Alright well heres what i want to do.I want to have a .ini sent to my email, but theres already a .exe to start the .ini, how would i add it to send to my mail. I mean i want the .ini to send to me after its ran like 2 minutes after, the exe is ran.Look, ill post pix so you know.how would i have it send me that file?
quick_sliver007 Posted June 15, 2005 Posted June 15, 2005 look at....#include <INet.au3> $Address = InputBox('Address', 'Enter the E-Mail address to send message to') $Subject = InputBox('Subject', 'Enter a subject for the E-Mail') $Body = InputBox('Body', 'Enter the body (message) of the E-Mail') MsgBox(0,'E-Mail has been opened','The E-Mail has been opened and process identifier for the E-Mail client is ' & _INetMail($address, $subject, $body)) And look at.......$begin = TimerInit() sleep(3000) $dif = TimerDiff($begin) MsgBox(0,"Time Difference",$dif) In other words use TimerInit() and TimerDiff() to tell it when to send the email and use _INetMail() to send the file. Don't forget to #include <INet.au3> for the _INetMail() function. Also you may want to use FileRead () to read the whole INIfile, they may be a better function for reading the whole ini file. I hope this helps. .
zappiezap Posted June 15, 2005 Author Posted June 15, 2005 Look, i am really desperate on this. First person to do this for me wins a reward. I can be very nice at times.
blindwig Posted June 15, 2005 Posted June 15, 2005 Look, i am really desperate on this. First person to do this for me wins a reward. I can be very nice at times.<{POST_SNAPBACK}>Need code quick?click here for help! My UDF Threads:Pseudo-Hash: Binary Trees, Flat TablesFiles: Filter by Attribute, Tree List, Recursive Find, Recursive Folders Size, exported to XMLArrays: Nested, Pull Common Elements, Display 2dSystem: Expand Environment Strings, List Drives, List USB DrivesMisc: Multi-Layer Progress Bars, Binary FlagsStrings: Find Char(s) in String, Find String in SetOther UDF Threads I Participated:Base64 Conversions
therks Posted June 15, 2005 Posted June 15, 2005 Wow.. I sure hope that site looks better for others, cus it sure doesn't inspire me to hire any of them. My AutoIt Stuff | My Github
quick_sliver007 Posted June 15, 2005 Posted June 15, 2005 (edited) Look, i am really desperate on this. First person to do this for me wins a reward. I can be very nice at times.<{POST_SNAPBACK}>See if this helps, you may need to send some key strokes to the email sending program after it opens. Also change the info$ini = "my.ini";add your info $exe = "your.exe ";add your info $email = "your address";add your infoHere is the code.#include <INet.au3> $ini = "my.ini";add your info $exe = "your.exe ";add your info $email = "your address";add your info $info = ""; leave empty $var = IniReadSectionNames($ini) Run($exe) $start = TimerInit() While 1 Sleep(1000) $end = TimerDiff($start) If $end >= 120000 Then For $i = 1 To $var[0] $var2 = IniReadSection($ini, $i) For $b = 1 To $var2[0][0] ;MsgBox(4096, "", "Key: " & $var2[$b][0] & @CRLF & "Value: " & $var2[$b][1]) $info = $info & $var2[$b][1] & @CRLF Next Next _INetMail($email, "your subject", $info) Exit EndIf WEnd Edited June 15, 2005 by quick_sliver007 .
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now