Jotos Posted August 3, 2023 Share Posted August 3, 2023 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. Link to comment Share on other sites More sharing options...
Andreik Posted August 3, 2023 Share Posted August 3, 2023 You can use this UDF. Jotos 1 When the words fail... music speaks. Link to comment Share on other sites More sharing options...
Jotos Posted August 4, 2023 Author Share Posted August 4, 2023 (edited) 6 hours ago, Andreik said: You can use this UDF. I already tried this one. 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 August 4, 2023 by Jotos Link to comment Share on other sites More sharing options...
Jotos Posted August 4, 2023 Author Share Posted August 4, 2023 (edited) <second post by mistake> Edited August 4, 2023 by Jotos Link to comment Share on other sites More sharing options...
Developers Solution Jos Posted August 4, 2023 Developers Solution Share Posted August 4, 2023 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. n3wbie and Jotos 2 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. Link to comment Share on other sites More sharing options...
Jotos Posted August 4, 2023 Author Share Posted August 4, 2023 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 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