Email was never designed for file attachments or HTML. Most mail servers won't even allow messages greater than 5MB in size. But there are free email accounts such as Yahoo Mail and Gmail that allow users anything up to 1GB of free space. So it occurred to me that my Yahoo Mail account would work quite well as a free method of making backups of time-critical data, such as those files being backed up using Zippy.
The vbSendMail.dll code is already in use with the MyMail.ocx which allows you to send mail from an Access program. Now I have added a utility to send mail from the Windows Command Prompt.
When you click on the "Send" button you get to see the progress of the mail being sent, and if there were any errors, they will be displayed. Bear in mind that files sent as attachments increase in size by 35% by the time they arrive in the target mailbox. So don't use it to send large files to your friends. Rather use www.sendthisfile.com, which can handle huge files without clogging your mailbox at all.
The command line to send an attachment:
CopyMail firstname.lastname@example.org Miami-2006-03-01.zipThere are two parameters for the program. The first one is optional, and refers to the target email address. If it isn't specified, the default address is used. The second parameter is the name of the file to be sent as an attachment. So you could send the same file simply by typing:
CopyMail "Miami-2006-03-01.zip"If your CopyMail.ini parameter file contains several email addresses (after the first 2 lines) you can refer to them by number, so
CopyMail 2 "Miami-2006-03-01.zip"would send the file to a second email address, not the first.
You can download version 1.00.20 of CopyMail (zipped, 47k) and use it on your PC, provided that you don't try to sell it, either on its own or as part of a collection of software. If you are willing to sign a non-disclosure agreement you can have the full source code as well.
Installation is fairly basic: copy the file into the directory where the batch file needs it, and double-click on CopyMail.exe to set up the CopyMail.ini file. If it doesn't work, download and install MyMail.ocx, which should add in all the required libraries.
The basic structure of the CopyMail.ini configuration file is simple:
Line 1: SMTP server (address or IP number)and so on. You can edit the CopyMail.ini file with any text editor, like notepad or EditPad.
Line 2: your "from" email address
Line 3: default "to" email address (1)
Optional Line 4: alternate "to" email address (2)
Optional Line 5: alternate "to" email address (3)
Please visit the vbSendMail.dll Version 3.65 web page, and download the original VB source code and user manual to find out how to use all the many features of the code.
Please note: This program is not to be sold, and will remain freeware in the future. You can't make it available for download anywhere else either. All downloads should be made from this page only. You may not list this software elsewhere without written permission.
-:| [home] | [free stuff] | [blog] |:-
All information copyright © 2006 Black and White Inc. All rights reserved. First published 1st March 2006. Last Updated: 13/07/2006 23:02