Juggernaut Posted February 28, 2009 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
Bru Posted February 28, 2009 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]
Juggernaut Posted February 28, 2009 Author 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
kjcdude Posted March 1, 2009 Posted March 1, 2009 I just use this UDF.http://www.autoitscript.com/forum/index.ph...INetSmtpMailCom
Richard Robertson Posted March 1, 2009 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.
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