AutoHotkey Community

It is currently May 27th, 2012, 11:14 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: February 22nd, 2006, 2:52 pm 
Offline

Joined: April 19th, 2005, 10:26 am
Posts: 2250
Location: switzerland
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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 22nd, 2006, 3:11 pm 
Offline

Joined: December 27th, 2005, 1:46 pm
Posts: 6837
Location: France (near Paris)
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)

_________________
Image vPhiLho := RegExReplace("Philippe Lhoste", "^(\w{3})\w*\s+\b(\w{3})\w*$", "$1$2")


Last edited by PhiLho on March 24th, 2006, 12:39 pm, edited 1 time in total.

Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 22nd, 2006, 4:44 pm 
Quote:
It (Blat!) has a DLL version...
Any code sample to run that Dll from AHK ? :D


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: February 22nd, 2006, 5:24 pm 
Offline

Joined: April 19th, 2005, 10:26 am
Posts: 2250
Location: switzerland
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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 1st, 2006, 7:50 pm 
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)


Report this post
Top
  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: SKAN and 1 guest


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group