I came across a situation where I needed to automatically send an email with data from a DBPro project. The "method" I came up with is to shell execute Outlook using the DBpro command "execute file".
Outlook, (and Outlook Express), allows launching from the command line with switches.
So, for example, this line of code:
execute file "Outlook.exe","/c ipm.note" ,"C:\Program Files\Microsoft Office\Office11"
would launch Outlook and open an email message, unpopulated.
Now, there are several switches, available here:
command line switches for Outlook
But the real beauty of using Outlook, as opposed to Outlook Express or Thunderbird (Thunderbird also works with command line, btw) is that you can use Visual Basic for Applications (VBA) within Outlook to automate email.
That means, a macro could be written, and called from within the startup event or login event to automatically send emails.
This option, to me, is better than using something like Blat, because Blat doesn't work with mail that uses SSL. You need another tool to bypass this, and it all starts to get quite messy.
The disadvantage to this option is, Outlook is $139.00, alot of money. However, you can get a 60 day free trial version of the entire Office suite.
And I bet older versions of Outlook could be had for alot less than that.
In my case, I'm using DB and the DBConn plugin to query an Access database. Then, I write the results into a text file. I then call Outlook, and have a macro I wrote to create, populate, attach the file, and send the email.
The only issue is security settings in Outlook. Unless the macro project is digitally signed, you will get a warning everytime Outlook launches. I have 2 methods to get past this. Digitally sign the macro using the self signing tool :
Digital signature
OR
just "allow all macros to run" in the security settings. I'm testing the digital signing now, but won't be able to verify it works on another pc until tomorrow, but I think it should, once it is accepted as trusted.
So, just thought I'd share this info.
Here is another link on getting started with VBA if you are not familiar with it.
Getting started with VBA