Sometimes there is the need to send regularly to a specific e-mail address\person files with updated data. And most of the times it is done at the end of the day, when all the transaction of the day were recorded and ready to send. It can be quite boring if you do it every day, using for example outlook or the webmail, because the steps are always the same: creating the e-mail, adding the email address zipping the content, attaching the content, writing the subject and the body and sending the e-mail. And if you use webmail there are additional steps of logging on and the file uploading. So why not finding a solution that does this automatically with no human intervention.
And it is possible if we combine windows task manager, some vb script, 7z and a Gmail account. You can download the source code at sendMail. The zip file contains 3 files:
sendMail.vbs - vb script
7z.exe - program to create the zip file
logs.txt - log file to log the time and the events
Some configuration is needed:
homePath = "C:\xxx\" 'folder where sendMail.vbs, logs.txt, 7z.exe and created zip files are
dataPath = "C:\xxxx\" ' folder that contains the files to zip
attachFile ="zipFile.ZIP" 'created zip file that will be attached to the e-mail
if zipFile("MAP*.?10") = 0 then ' file name of the file to zip or a wildcard containing the files to zip
For sending the e-mail, configure correctly the following parameters with your Gmail account details:
.from = "firstname.lastname@example.org"
.To = "email@example.com; firstname.lastname@example.org" .Subject = "Test Mail" .Textbody = "The quick brown fox " & Chr(10) & "jumps over the lazy dog" .Item (schema & "smtpserver") = "smtp.gmail.com"
.Item (schema & "sendusername") = "email@example.com"
.Item (schema & "smtpaccountname") = "firstname.lastname@example.org"
.Item (schema & "sendpassword") ="xxxxxx" You can test it double clicking on the sendMail.vbs file and checking thee events logged on the logs.txt.
Later I will be explaining how run this file regularly from windows task manager.
Wondering why facebook disabled the following feature for applications:
"Due to changes in Facebook, you can no longer add Cities I've Visited (or any Facebook application) to a custom tab on your Facebook Profile page. Facebook phased out this feature and suggests that you access your favorite Facebook apps from the left hand navigation on your Facebook homepage." (source)
If you don´t bother to have your web site name ending with co.cc and you are searching for a free domain name service, co.cc offer can be a nice solution. If you have a blog ending with blogname.blogspot.com you can easily transform it to blogname.co.cc with just a few changes. You can also easily integrate with Adsense, Windows Live, and Google Apps. It also offers a control panel where you can easily edit the following parameters: CNAME, A, MX, NS, TXT.
After creating and configuring a new domain name you may search on Google for free web hosting and get many links writing and ranking free web hosting services. 000webhost.com is probably one of the best free web hosting providers. A free hosting account includes 1500 MB Disk Space, 100 GB Data Transfer,PHP with MySQL Database Support, cPanel Control Panel, Fantastico De Luxe 1-Click Autoinstaller and Website Builder Software. This can be very useful if you are building a site using Joomla open source content management system.