Jump to content

problemi whit _INetSmtpMail


Recommended Posts

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 = @error

If $Resultat = 1 Then

MsgBox(0, "Success!", "Mail sent")

Else

MsgBox(0, "Error!", "Mail failed with error code " & $err)

EndIf

but i recive the error 50...why?

my smtp server require login...

Edited by Mistake
Link to comment
Share on other sites

@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

@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

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

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.

1.1.1.1 is an example :P

Link to comment
Share on other sites

my topic

this may not help you... it didnt help me...

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