WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

Postie

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

kGetMail attachments

Keywords: 

Question:

Can winbatch monitor incoming mail messages and copy any attachments to a specific directory?

Answer:

Maybe something like this...

AddExtender("WWPST44I.DLL")
host="mail.server.com"
fromaddr="user@server.com"
userid="username"
password="pswd"
port=""
msgnumber=""
extractfile=""
mailbox=""
flags=""
kInit(host,fromaddr,userid,password,port)
While 1
   DirChange("c:\temp\attachments")
   allmsgs=kGetMail(msgnumber,extractfile,"",mailbox,flags)
   TimeDelay(1)
EndWhile
Exit

Article ID:   W14431
Filename:   kGetMail attachments.txt
File Created: 2010:10:01:09:58:12
Last Updated: 2010:10:01:09:58:12