Jump to content

Can't open include file? _INetSmtpMailCom.au3


 Share

Recommended Posts

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

  • Developers

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

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