HankHell Posted January 22, 2018 Share Posted January 22, 2018 Heya guys, I'm kinda new to AutoIT and was wondering if you guys could help me out. I'm trying to make a script that emails me a copy of my file every time changes are made to it. However, while testing the email portion of the script, I get the errors " error: can't open include file <_NetSmtpMailCom.au3>" and "error: _InetSmtpMailCom() : undefined function." I'm not exactly sure why this is happening and was wondering if someone could explain it to me. #include <misc.au3> #include <file.au3> #include <Inet.au3> #include <_INetSmtpMailCom.au3> Global $oMyRet[2] Global $oMyError = ObjEvent("AutoIt.Error", "MyErrFunc") $SmtpServer = "smtp.gmail.com" $FromName = "Person" $FromAddress = "firstemail@gmail.com" $ToAddress = "secondemail@gmail.com" $Subject = "Logs" $Body = FileReadLine('index.txt',"Report") $AttachFiles = "index.txt" $CcAddress = "" $BccAddress = "" $Importance = "Normal" $Username = "firstemail@gmail.com" $Password = "PASSWORDforEMAIL" $IPPort = 465 $ssl = 1 $rc = _INetSmtpMailCom($SmtpServer, $FromName, $FromAddress, $ToAddress, $Subject, $Body, $AttachFiles, $CcAddress, $BccAddress, $Importance, $Username, $Password, $IPPort, $ssl) Link to comment Share on other sites More sharing options...
kylomas Posted January 22, 2018 Share Posted January 22, 2018 HankHell, The include file is Inet.au3... kylomas Forum Rules Procedure for posting code "I like pigs. Dogs look up to us. Cats look down on us. Pigs treat us as equals." - Sir Winston Churchill Link to comment Share on other sites More sharing options...
HankHell Posted January 22, 2018 Author Share Posted January 22, 2018 1 hour ago, kylomas said: HankHell, The include file is Inet.au3... kylomas when I take #include <_INetSmtpMailCom.au3> out of the script, it still gives me "error: _INetSmtpMailCom(): undefined function." though. Link to comment Share on other sites More sharing options...
HankHell Posted January 22, 2018 Author Share Posted January 22, 2018 I'm not sure if I improperly defined the function, or don't have the proper include =/ Link to comment Share on other sites More sharing options...
Developers Jos Posted January 22, 2018 Developers Share Posted January 22, 2018 That is a UDF I wrote and not in any standard include file. Just search the examples forum for the source. Jos 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...
HankHell Posted January 22, 2018 Author Share Posted January 22, 2018 25 minutes ago, Jos said: That is a UDF I wrote and not in any standard include file. Just search the examples forum for the source. Jos ah I found it, this makes things much much easier, thanks a bunch 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