Jump to content
Sign in to follow this  

INetSmtpMail & mail server authoring

Recommended Posts


Here is the script:

AutoItSetOption ( "TrayIconDebug", 1 )

#include <C:\Program Files\AutoIt3\Include\INet.au3>

$s_SmtpServer = "mailserver.com"
$s_FromName = "Me"
$s_FromAddress = "me@home1.com"
$s_ToAddress = "me@home2.com"
$s_Subject = "Email trial"
Dim $as_Body[2]
$as_Body[0] = "Testing the new email udf"
$as_Body[1] = "That's ok"
$Response = _INetSmtpMail ($s_SmtpServer, $s_FromName, $s_FromAddress, $s_ToAddress, $s_Subject, $as_Body,"", -1, 1)
$err = @error
If $Response = 1 Then
    MsgBox(0, "Success!", "Mail sent")
    MsgBox(0, "Error!", "Mail failed with error code " & $err)

And here is the error mesage:

16:42:22 2 <- 530 <me@home1.com>... MAIL requires AUTH

16:42:22 <-> 250

How could I provide the login/pwd required to be granted to the mail server?

I am stuck on that issue. :lmao:

Thanks in advance for your help.

Share this post

Link to post
Share on other sites


why if I try to use this function _INetSmtpMail i got the error that the function does not exist?

Is there smtg else to add / implement?


Share this post

Link to post
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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...