Jump to content

Recommended Posts

Posted (edited)

I'm using this simple code straight from the help file, and everything i fix, one more error comes up.

#include <INet.au3>

$s_SmtpServer = "smtp.live.com.au"
$s_FromName = "myname"
$s_FromAddress = "myemail"
$s_ToAddress = "myemail"
$s_Subject = "Hello!"
;Dim $as_Body
;$as_Body = "Testing"
$Response = _INetSmtpMail ($s_SmtpServer, $s_FromName, $s_FromAddress, $s_ToAddress, $s_Subject, "Hello")
$err = @error
If $Response = 1 Then
    MsgBox(0, "Success!", "Mail sent")
Else
    MsgBox(0, "Error!", "Mail failed with error code " & $err)
EndIf

Can anyone give me a hand?

With this i am currently getting error code 4: Cannot create socket

Edited by Juggernaut
Posted

Must be something to do with,

$s_SmtpServer = "smtp.live.com.au"

Maybe it does not eccept SMTP?

So it cannot create.

[right][/right]

Posted (edited)

Edit: nope, no matter what email i use (the server), it still brings up an error.

Anyone got any ideas? Its straight from the help file..

Edited by Juggernaut

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
×
×
  • Create New...