Sign in to follow this  
Followers 0
Timo

Mailing an short info

5 posts in this topic

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

Share this post


Link to post
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

Share this post


Link to post
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


Bye...,Timo

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

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

Share this post


Link to post
Share on other sites

Hello pacman,

great. Thank you for your posting. And by the way, you are very very fast.

I will now study which one is the best for me.

Thanks a lot,

Timo


Bye...,Timo

Share this post


Link to post
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
Sign in to follow this  
Followers 0