| View previous topic :: View next topic |
| Author |
Message |
Atomhrt
Joined: 02 Sep 2004 Posts: 124 Location: Sunnyvale
|
Posted: Fri Jun 30, 2006 9:23 pm Post subject: Blat DLL Usage |
|
|
Blat is a small, efficient SMTP command line mailer for Windows. It is the SMTP *sending* part of an eMail User Agent (MUA) or eMail client. As such, Blat sends eMail via SMTP (or internet eMail) from the command line.
Link to Blat home page:
http://www.blat.net/
Syntax:
http://www.blat.net/syntax/syntax.html
*Very* simple blat.dll script that sends the ahk script and blat.dll to the "addy" email address:
You can get the dll from here:
http://www.geocities.com/toby_korn/blat/
I created the scipt with the intention of sending the output of another ahk script to a couple of email addresses. _________________ I am he of whom he speaks!
Last edited by Atomhrt on Sun Jul 02, 2006 2:50 pm; edited 3 times in total |
|
| Back to top |
|
 |
Laszlo
Joined: 14 Feb 2005 Posts: 4710 Location: Boulder, CO
|
Posted: Sat Jul 01, 2006 1:39 am Post subject: |
|
|
| I guess its function is to send a given file to a given email address. Right? Could you add a little explanation of the options or a link, where we can find them? An example application would be also nice. Many of us don't know why we would email files from an AHK script. |
|
| Back to top |
|
 |
Atomhrt
Joined: 02 Sep 2004 Posts: 124 Location: Sunnyvale
|
Posted: Sun Jul 02, 2006 2:33 pm Post subject: |
|
|
| Laszlo wrote: | | I guess its function is to send a given file to a given email address. Right? Could you add a little explanation of the options or a link, where we can find them? An example application would be also nice. Many of us don't know why we would email files from an AHK script. |
Sorry about that. I was in a hurry when I made the original post. I've updated it with more info. Hope that helps. _________________ I am he of whom he speaks! |
|
| Back to top |
|
 |
silveredge78
Joined: 25 Jul 2006 Posts: 481 Location: Midwest, USA
|
Posted: Tue Sep 26, 2006 9:45 pm Post subject: |
|
|
Laslo, I use the email sending capabilities of blat in a couple of my scripts, particularly my Server Status Check script. It sends me an email to my cell phone, which comes across as a SMS text message. Rather handy for knowing when servers appear to not be responding.
Or in the case of another custom script, it pages me via the email feature of blat, to let me know when a particular program failed to restart properly.
These notifications are handy as it lets me know I need to look into what is going on. The same principle would be good for just normal email notifications, for followup purposes.  _________________ SilverEdge78 |
|
| Back to top |
|
 |
toralf
Joined: 31 Jan 2005 Posts: 3910 Location: Bremen, Germany
|
Posted: Tue Sep 26, 2006 9:56 pm Post subject: |
|
|
What is the benefit of using the dll over the command line tool?
I used the CLI in one of my scripts and it works ok. _________________ Ciao
toralf  |
|
| Back to top |
|
 |
silveredge78
Joined: 25 Jul 2006 Posts: 481 Location: Midwest, USA
|
Posted: Tue Sep 26, 2006 11:05 pm Post subject: |
|
|
Now that I cannot answer. I use the CLI myself. I do not care for DllCalls if I do not have to use them. I was merely addressing Laszlo's question as to why someone would want to email from an AHK script.  _________________ SilverEdge78 |
|
| Back to top |
|
 |
Atomhrt
Joined: 02 Sep 2004 Posts: 124 Location: Sunnyvale
|
Posted: Wed Sep 27, 2006 1:48 am Post subject: |
|
|
| toralf wrote: | What is the benefit of using the dll over the command line tool?
I used the CLI in one of my scripts and it works ok. |
Because you are not involving the command shell (cmd.exe) for one thing. An example of why this may be important... A bat file that ran fine on lots of other machines was bombing on three. We finally tracked it down to a registry setting that the user had set in the Command Processor tree. We decided not to use a bat file for the tool. _________________ I am he of whom he speaks! |
|
| Back to top |
|
 |
Laszlo
Joined: 14 Feb 2005 Posts: 4710 Location: Boulder, CO
|
Posted: Wed Sep 27, 2006 2:36 am Post subject: |
|
|
| Thanks Atomhrt and silveredge78 for the explanations. I am convinced now that Blat dll is a useful tool. Especially, sending an SMS automatically can be very helpful. |
|
| Back to top |
|
 |
majkinetor
Joined: 24 May 2006 Posts: 4511 Location: Belgrade
|
Posted: Sat Sep 30, 2006 6:52 pm Post subject: |
|
|
| Quote: | | I was merely addressing Laszlo's question as to why someone would want to email from an AHK script. |
What kind of question is this ?
There are number of uses... _________________
 |
|
| Back to top |
|
 |
Laszlo
Joined: 14 Feb 2005 Posts: 4710 Location: Boulder, CO
|
Posted: Sat Sep 30, 2006 7:00 pm Post subject: |
|
|
| majkinetor wrote: | | There are number of uses... | It was interesting to here about a few. Why don't you tell about your application? Most of us use a single computer and our employers don't allow sending automated emails. Some people's first reaction about auto-sending emails could be that it is for spam. |
|
| Back to top |
|
 |
majkinetor
Joined: 24 May 2006 Posts: 4511 Location: Belgrade
|
Posted: Sat Sep 30, 2006 7:32 pm Post subject: |
|
|
Only few:
1. Reporting GUI for bugs
2. Automatic annoucement of certain events :
2.1. send ip on starting the machine
2.2. send application logs
2.3. birthday robots
3. Send spams
4. Make the people nervous
5. order pica for your breakfast at scheduled time
6. .... _________________
 |
|
| Back to top |
|
 |
PhiLho
Joined: 27 Dec 2005 Posts: 6836 Location: France (near Paris)
|
Posted: Sun Oct 01, 2006 9:41 am Post subject: |
|
|
Other use I though of when I was searching for a job: as last resort, when you discover lot of potential emplyers just don't read your messages, don't answer to them, or use robots to answer them:
Send automated e-mail job applications.
Not dumb spam, but fill in a base of data on the targetted job, and send the more or less personnalized e-mails.
At the end, I had a standard e-mail which I adjusted slightly to the profile anyway...
Of course, for really interesting offers, I spent more time to polish the message...  _________________
vPhiLho := RegExReplace("Philippe Lhoste", "^(\w{3})\w*\s+\b(\w{3})\w*$", "$1$2") |
|
| Back to top |
|
 |
majkinetor
Joined: 24 May 2006 Posts: 4511 Location: Belgrade
|
Posted: Sun Oct 01, 2006 12:43 pm Post subject: |
|
|
So you see Laszlo, from ordering a piza to find a new job...  _________________
 |
|
| Back to top |
|
 |
Laszlo
Joined: 14 Feb 2005 Posts: 4710 Location: Boulder, CO
|
Posted: Sun Oct 01, 2006 4:47 pm Post subject: |
|
|
It was a long time ago... I wanted to apply for many jobs (it was 170 at the end), so I wrote a TeX macro with input parameters like the job title, reference code, the contact person with the proper salutation, address, my expertise, etc. It printed professional looking letters, which I signed and mailed. (Still, I got only a handful of replies.)
The last time I did a similar process with Word macros. I could create a good looking application email in seconds, but before I sent them, I had to check for inconsistencies, formatting, etc. The actual sending of the email was the least of the problems, you can do it directly from Word. However, with Blat and an AHK script (hotkey stripping the email address and send the selected text after saving it for later reference), this last step could have been simplified. I said I was already convinced automatic email sending is useful. |
|
| Back to top |
|
 |
majkinetor
Joined: 24 May 2006 Posts: 4511 Location: Belgrade
|
Posted: Sun Oct 01, 2006 6:34 pm Post subject: |
|
|
Ok, so we are all very happy about this dll.  _________________
 |
|
| Back to top |
|
 |
|