title: Send file(s) by email on a regular basis via batch file
body: <p>I have a beginner's problem. I have a remote computer which collects data (amateur metheorology stuff). Data is stored on a daily basis in a text file. Each file is named after its date: 28_02-2014.txt, 01_03_2014.txt etc.</p>
  
  <p>Can anyone help me create a batch file which would somehow send such a text file over email automatically. Even an option of creating a zip file from all the txt files will be OK. I can delete the folder once a month, so even sending a zip file with 31 text files inside won't affect bandwidth (probably 300kb per month).</p>
  
  <p>My problems so far:</p>
  
  <p>Windows 7</p>
  
  <ol>
  <li>I don't know how to create a batch file which would ZIP all the files in one folder.</li>
  <li>I don't know how to send an automatic e-mail. The task scheduler doesn't allow to input server authentication (user/pass). I can only type the SMTP server name and that's it.</li>
  <li>Even if I manage to send e-mail somehow through the task manager, I would have to create an action for every day, which doesn't seem ideal.</li>
  </ol>
  
  <p>Please, could anyone help me with this? Whichever solution is simpler: either sending the newest file from a specific folder or zipping the whole folder into a file and sending it.</p>