Jump to content

Mailing an short info


Timo
 Share

Recommended Posts

Hello together,

I want to check with my program if a directory is empty or not. If a file is in this directory I want to send a short email.

Is this possible with AutoIt? Has someone an idea how to program this?

I really don't know how to start.

Thanks,

Timo

Bye...,Timo

Link to comment
Share on other sites

I want to check with my program if a directory is empty or not

This should get you started

$size = DirGetSize("C:\Images", 1)
IsArray ($size)

If $size[0] = 0 Then 
   MsgBox(4096,"", "Directory empty")
Else 
   MsgBox(4096,"", "Directory not empty")
Endif
Link to comment
Share on other sites

Hi Nova,

ok. This works, but how to send a info via email that the directory is not empty?

Do you have any ideas?

Bye,

Timo

<{POST_SNAPBACK}>

These are a few different ways to send mail:

- UDF calling an external SMTP mailer, in this case blat.exe, look here

- UDF calling Larry's TCP functions in AU3Xtra.dll, look here. You can download Larry's AU3Xtra.dll http://www.autoitscript.com/fileman/users/Larry/au3xtra.dll

- UDF to send mail via your browser, look here

The first 2 methods require access to an SMTP server.

Edited by pacman
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...