Jump to content

Major Question...


Recommended Posts

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.

Posted Image

how would i have it send me that file?

Link to comment
Share on other sites

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.

.

Link to comment
Share on other sites

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!

Link to comment
Share on other sites

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 info

Here 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 by quick_sliver007

.

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...