Juggernaut Posted February 28, 2009 Share Posted February 28, 2009 (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 February 28, 2009 by Juggernaut Link to comment Share on other sites More sharing options...
Bru Posted February 28, 2009 Share Posted February 28, 2009 Must be something to do with, $s_SmtpServer = "smtp.live.com.au" Maybe it does not eccept SMTP? So it cannot create. [right][/right] Link to comment Share on other sites More sharing options...
Juggernaut Posted February 28, 2009 Author Share Posted February 28, 2009 (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 March 1, 2009 by Juggernaut Link to comment Share on other sites More sharing options...
kjcdude Posted March 1, 2009 Share Posted March 1, 2009 I just use this UDF.http://www.autoitscript.com/forum/index.ph...INetSmtpMailCom Link to comment Share on other sites More sharing options...
Richard Robertson Posted March 1, 2009 Share Posted March 1, 2009 My previous ISP actually blocked SMTP access unless you used their server. It was pretty stupid but it would give you an error for any server. Link to comment Share on other sites More sharing options...
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