 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
garry
Joined: 19 Apr 2005 Posts: 1182 Location: switzerland
|
Posted: Wed Feb 22, 2006 1:52 pm Post subject: Vmailer, sende email command |
|
|
Name: vmailer.exe 378kB
Author: Dev Virdi
Homepage: http://virdi-software.com
Forum: http://forums.virdi-software.com
FAQ: http://www.virdi-software.com/vmailer/faq/faq.shtml
V-Mailer is 32-bit command-line and batch mailer and supports SMTP authentication.
It is a console application, which means that it can only be
run from the DOS prompt or from inside a batch file.
It will send a message to any single email address.
example.txt :
---------------------------------------------------
To: toralf.xy@xbluewin.ch
From: garry.xy@xbluewin.ch
Subject: Example message
Your message text should start here, separated by a blank
line from the headers
----------------------------------------------------
vmailer.ahk
| Code: |
;this example add From and Subject to the original script and send
TO =toralf.xy@xbluewin.ch
FROM=garry.xy@xbluewin.ch
F7a =example.txt
LN2 =Header message
FileRead,F7ab,%F7a%
Filedelete,%F7a%
Fileappend,From:GARRY_NEWS`r`nSubject:%LN2%`r`n`r`nHello Toralf`,`r`n%F7ab%,%F7a%
run,vmailer.exe %F7a% mail.xbluewin.ch %TO% %FROM%
return | vmailer.bat | Code: | rem program: text: server: to: from: user: password:
vmailer.exe example.txt mail.xbluewin.ch toralf.xy@xbluewin.ch garry.xy@xbluewin.ch
rem example.txt First line must be empty or add first From:xx and Subject:yy then empty line
pause |
|
|
| Back to top |
|
 |
PhiLho
Joined: 27 Dec 2005 Posts: 6721 Location: France (near Paris)
|
Posted: Wed Feb 22, 2006 2:11 pm Post subject: |
|
|
Interesting.
A well known similar program is Blat.
Old site
Old new site (sic) Real new site! (SourceForge)
It is 73KB with source... (135KB without sources in the latest version, EXE is 102KB)
It has some options to avoid the need to know format of Mime headers (CC and BCC dest, etc.).
It allows to attach binary and text attachments.
It has a DLL version...
[EDIT] Added link to latest version (2.5.0) _________________
vPhiLho := RegExReplace("Philippe Lhoste", "^(\w{3})\w*\s+\b(\w{3})\w*$", "$1$2")
Last edited by PhiLho on Fri Mar 24, 2006 11:39 am; edited 1 time in total |
|
| Back to top |
|
 |
BoBo Guest
|
Posted: Wed Feb 22, 2006 3:44 pm Post subject: |
|
|
| Quote: | | It (Blat!) has a DLL version... | Any code sample to run that Dll from AHK ?  |
|
| Back to top |
|
 |
garry
Joined: 19 Apr 2005 Posts: 1182 Location: switzerland
|
Posted: Wed Feb 22, 2006 4:24 pm Post subject: |
|
|
Thank you PhiLho, I trying blat.exe, has worked
hello BoBo guest
how use Blat.exe, how write more lines in body ?
| Code: | mailserver=mail.bluewin.tv
From=garry@bluewin.tv
To =garry@bluewin.tv
Runwait,%comspec% /K Blat -install %mailserver% %from%
Runwait,%comspec% /K Blat - -body "Hello garry,<emptyline>, This is the third line" -subject "Test for blat" -to %TO% -attacht test33.txt
exitapp
|
|
|
| Back to top |
|
 |
Not Bobo Guest
|
Posted: Wed Mar 01, 2006 6:50 pm Post subject: |
|
|
| garry wrote: | Thank you PhiLho, I trying blat.exe, has worked
hello BoBo guest
how use Blat.exe, how write more lines in body ?
|
You have to use a file.
Example: blat.exe somefile.txt -s subject (other parameters) |
|
| Back to top |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|