Mistake Posted March 12, 2009 Share Posted March 12, 2009 (edited) i have made this code#include <INet.au3>$s_SmtpServer = "1.1.1.1"$s_FromName = @ComputerName$s_FromAddress = "dsadsad@dsads.it"$s_ToAddress = "dfsadsad@dsads.it"$s_Subject = "" $as_Body = ""$Resultat = _INetSmtpMail ($s_SmtpServer, $s_FromName, $s_FromAddress, $s_ToAddress, $s_Subject, $as_Body,-1)$err = @errorIf $Resultat = 1 ThenMsgBox(0, "Success!", "Mail sent")ElseMsgBox(0, "Error!", "Mail failed with error code " & $err)EndIfbut i recive the error 50...why? my smtp server require login... Edited March 12, 2009 by Mistake Link to comment Share on other sites More sharing options...
Marlo Posted March 12, 2009 Share Posted March 12, 2009 @ERROR = 1 - Invalid Parameters @ERROR = 2 - Unable to start TCP @ERROR = 3 - Unable to resolve IP @ERROR = 4 - Unable to create socket @ERROR = 5x - Cannot open SMTP session. x indicates the index number of last command issued to the SMTP server. @ERROR = 50x - Cannot send body. x indicates the line number of $as_Body (first line is 0). @ERROR = 5000 - Cannot close SMTP session From the helpfile. Click here for the best AutoIt help possible.Currently Working on: Autoit RAT Link to comment Share on other sites More sharing options...
Mistake Posted March 12, 2009 Author Share Posted March 12, 2009 @ERROR = 1 - Invalid Parameters @ERROR = 2 - Unable to start TCP @ERROR = 3 - Unable to resolve IP @ERROR = 4 - Unable to create socket @ERROR = 5x - Cannot open SMTP session. x indicates the index number of last command issued to the SMTP server. @ERROR = 50x - Cannot send body. x indicates the line number of $as_Body (first line is 0). @ERROR = 5000 - Cannot close SMTP session From the helpfile. i have read this....but i dont undestand why Link to comment Share on other sites More sharing options...
AlmarM Posted March 12, 2009 Share Posted March 12, 2009 (edited) When I try to use this UDF, im getting @error '4'. Unable to create socket. Could anyone help me aswell? AlmarM EDIT: Oh and your problem: The mail UDF cant connect to the SMTP... Its 1.1.1.1, try use gmail for example. Edited March 12, 2009 by AlmarM Minesweeper A minesweeper game created in autoit, source available. _Mouse_UDF An UDF for registering functions to mouse events, made in pure autoit. 2D Hitbox Editor A 2D hitbox editor for quick creation of 2D sphere and rectangle hitboxes. Link to comment Share on other sites More sharing options...
Mistake Posted March 12, 2009 Author Share Posted March 12, 2009 When I try to use this UDF, im getting @error '4'. Unable to create socket.Could anyone help me aswell?AlmarMEDIT:Oh and your problem:The mail UDF cant connect to the SMTP... Its 1.1.1.1, try use gmail for example.1.1.1.1 is an example Link to comment Share on other sites More sharing options...
CodyBarrett Posted March 12, 2009 Share Posted March 12, 2009 my topicthis may not help you... it didnt help me... [size="1"][font="Tahoma"][COMPLETED]-----[FAILED]-----[ONGOING]VolumeControl|Binary Converter|CPU Usage| Mouse Wrap |WinHide|Word Scrammbler|LOCKER|SCREEN FREEZE|Decisions Decisions|Version UDF|Recast Desktop Mask|TCP Multiclient EXAMPLE|BTCP|LANCR|UDP serverless|AIOCR|OECR|Recast Messenger|AU3C|Tik-Tak-Toe|Snakes & Ladders|BattleShips|TRON|SNAKE_____________________[u]I love the Helpfile it is my best friend.[/u][/font][/size] 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