Jump to content

INetSmtpMail & mail server authoring


marclaz
 Share

Recommended Posts

Hello,

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")
Else
    MsgBox(0, "Error!", "Mail failed with error code " & $err)
EndIf

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.

Link to comment
Share on other sites

  • 3 months later...

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