Jump to content

Recommended Posts

Posted

Heya~

I want to send a mail with Autoit. After a few unsuccessful attempts and a lot of frustration, I just can't get ahead.

Does anyone have a guide or a UDF that I could use?

 

Thanks.

Posted (edited)
6 hours ago, Andreik said:

You can use this UDF.

I already tried this one.

 

image.png.c35181856026a04ca679f5096ec0a897.png

Error code:2 Description:The message could not be sent to the SMTP server. The transport error code is 0x80040217. The server response is not available

 

This is my change to the UDF:

;##################################
; Variables
;##################################
$SmtpServer = "securesmtp.t-online.de"              ; address for the smtp-server to use - REQUIRED
$FromName = "Test Name"                             ; name from who the email was sent
$FromAddress = "xxxFrom@t-online.de"                ; address from where the mail should come
$ToAddress = "xxxTo@gmail.com"                      ; destination address of the email - REQUIRED
$Subject = "Test Mail"                              ; subject from the email - can be anything you want it to be
$Body = "Test Mail"                                 ; the messagebody from the mail - can be left blank but then you get a blank mail
$AttachFiles = ""                                   ; the file(s) you want to attach seperated with a ; (Semicolon) - leave blank if not needed
$CcAddress = ""                                     ; address for cc - leave blank if not needed
$BccAddress = ""                                    ; address for bcc - leave blank if not needed
$Importance = "Normal"                              ; Send message priority: "High", "Normal", "Low"
$Username = "xxxFrom@t-online.de"                   ; username for the account used from where the mail gets sent - REQUIRED
$Password = "xxxPassword"                           ; password for the account used from where the mail gets sent - REQUIRED
;~ $IPPort = 25                                     ; port used for sending the mail
;~ $ssl = 0                                         ; enables/disables secure socket layer sending - put to 1 if using httpS
$tls = 0                                            ; enables/disables TLS when required
$IPPort=465                                         ; GMAIL port used for sending the mail
$ssl=1                                              ; GMAILenables/disables secure socket layer sending - put to 1 if using httpS

 

Edited by Jotos
  • Developers
  • Solution
Posted

Does your t-mobile account use 2 step authentication?
If so does it also allow for "insecure apps" to set up another password, as that would then be required for this to work? 
Use that is that is available.

 

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Posted
47 minutes ago, Jos said:

Does your t-mobile account use 2 step authentication?
If so does it also allow for "insecure apps" to set up another password, as that would then be required for this to work? 
Use that is that is available.

 

Yes, that was the problem! Thanks

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...