AutoHotkey Community

It is currently May 27th, 2012, 10:34 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Email
PostPosted: November 30th, 2007, 3:44 pm 
Offline

Joined: April 19th, 2005, 10:26 am
Posts: 2250
Location: switzerland
MODIFIED=20071202
added blat.exe which allows to send attachment (drag&drop)
Need 2/3 standalone freeware programs and your account
download the 2/3 programs, start script, input first once the correct account

button Send-New, send first email to you for test
button Get E-mails , see received mails


Script:
http://www.autohotkey.net/~garry/LV_EMAIL_03.ahk

Quote:
MODIFIED =20071202
SCRNAMES =LV_EMAIL_03.ahk
;
; script from 20071124 Ripp3r]D3[ http://de.autohotkey.com/forum/topic2188.html
;
;---------------------- FREEWARE STANDALONE ------------ DOWNLOAD ------------------------
;---popclient.exe ----- http://www.codeode.com/ http://www.codeode.com/popclient/popclient.exe ;receive
;---vmailer.exe ----- http://virdi-software.com http://virdi-software.com/vmailer/vmail121.zip ;send
;
; OR/AND (send also attachment drag&drop ) :
;---blat.exe ----- http://www.blat.net http://downloads.sourceforge.net/blat/blat262.full.zip ;send
;---blat.dll
;----------------------------------------------------------------------------------------------------------
;
; own_INPOPSERVER =pop.bluewin.ch
; own_SMTP =mail.bluewin.ch
; own_emailadress =garry1411@bluewin.ch
; own_password1 =123456ABCD
;
;--------- http://www.autohotkey.net/~garry/Email01.jpg
;--------- http://www.autohotkey.net/~garry/LV_EMAIL_03.ahk
;
; Can send attachment with blat.exe
; This script only receive text , otherwise use Thunderbird Portable=
; http://portableapps.com/
;
;



here Spams I received :evil:
Image


=======================================================
BLAT.exe
here an easy example

Code:
MODIFIED  = 20090601
Filename1 = Blat Email-Send Drag&Drop Example attachment

/*
http://www.blat.net/
http://www.blat.net/?faq/index.html
http://sourceforge.net/project/showfiles.php?group_id=81910
*/


#NoEnv
#SingleInstance force
SetBatchLines,-1
setworkingdir, %a_scriptdir%
AutoTrim Off

SENDTO=garry1234567890@bluewin.ch      ;  for test your email

blatx=%A_scriptdir%\blat.exe
ifnotexist,%blatx%
  goto, blatx1

FileLog=_blat.log
txtfil =_FileText.txt     ;txt files
binfil =_Filebin.txt      ;binary files
inlfil =_FileInline.txt   ;body


ifexist,%FileLog%
  filedelete,%Filelog%
ifexist,%txtfil%
  filedelete,%txtfil%
ifexist,%binfil%
  filedelete,%binfil%

ifnotexist,%txtfil%
  Fileappend,,%txtfil%
ifnotexist,%binfil%
  Fileappend,,%binfil%


Gui,3:default
;Gui,3:Color, 000000
Gui,3:Font,S10 CDefault,Verdana

Gui 3:Add, Button,      x10   y10   w90   h25  gSend1    , SEND
Gui 3:Add, Button,      x570  y10   w90   h25  gClearBody, CLEAR


Black1 = 0x000000
Lime1  = 0x00FF00
Gui,3:Color, ControlColor, %Black1%
Gui 3:Add, Edit,c%lime1%  x6    y40   w750  h350 vBody     ,
Gui,3: Color,Gray



Gui 3:Add, Text,        x100  y410         cWhite         , ATTACHMENTS put here
Gui 3:Add, Button,      x570  y405   w90   h25  gClearMSG2, CLEAR-ATT
Gui 3:Add, Edit,cWhite  x6    y440   w750  h310 vMsg2 readonly,              ;ATTACH input files her

Gui 3:Add, Edit,cWhite  x6    y760   w750  h150 vLog readonly,               ;Logfile message

Gui 3:Show,        x1   y1  w770  h940         ,%filename1%
GuiControl,3:Focus,Body
Return
;---------------
3GuiClose:
3GuiEscape:
ExitApp
;-----------------



SEND1:
gui,3:submit,nohide
ifexist,%inlfil%
 filedelete,%inlfil%
ifexist,%Filelog%
 Filedelete,%Filelog%
stringreplace,body,body,`n,`r`n,all
fileappend,%body%`r`n,%inlfil%
;SplashImage,SEND,m2,Wait....`nBlat-mailer is now sending to %SendTo%
GuiControl,3:,Log,Send email to >> %sendto%
Runwait,%comspec% /c Blat - -body "hallo garry" -subject "Greetings" -to %SENDTO% -attachi %inlfil% -atf %txtfil% -af %binfil% -log %FileLog% -timestamp,,hide
;SplashImage, Off
fileread,AAA,%Filelog%
GuiControl,3:,Log,%AAA%
return


CLEARBODY:
GuiControl,3:,body,%nothing%
return



CLEARMSG2:
Gui,3:submit,nohide
Selectedfilename=
GuiControl,3:,MSG2,%nothing%
ifexist,%txtfil%
  filedelete,%txtfil%
ifexist,%binfil%
  filedelete,%binfil%
ifnotexist,%txtfil%
  Fileappend,,%txtfil%
ifnotexist,%binfil%
  Fileappend,,%binfil%
return


3GuiDropFiles:
Gui,3:submit,nohide

Loop, parse, A_GuiEvent, `n
    {
    SelectedFileName = %SelectedFileName%`r`n%A_LoopField%     ;write files-names
    SplitPath,A_loopfield, name, dir, ext, name_no_ext, drive
    if ext=txt
         Fileappend,%A_LoopField%`,,%txtfil%
      else
         Fileappend,%A_LoopField%`,,%binfil%
    }

GuiControl,3:,MSG2,%SelectedFileName%
return
;---------------------------------------------------------------------------



;================= DOWNLOAD http://sourceforge.net/project/showfiles.php?group_id=81910 ===================
Blatx1:
{
   text31=
   (
   Download blat.exe
   from
   http://sourceforge.net/project/showfiles.php?group_id=81910
   )
msgbox, 262180, Start URL,%text31%
ifmsgbox,NO
   exitapp
else
   {
   run,http://sourceforge.net/project/showfiles.php?group_id=81910
   exitapp
   }
}
return
;============================================================================



/*
-attach <file>  : attach binary file(s) to message (filenames comma separated)
-attacht <file> : attach text file(s) to message (filenames comma separated)
-attachi <file> : attach text file(s) as INLINE (filenames comma separated)
-embed <file>   : embed file(s) in HTML.  Object tag in HTML must specify
                  content-id using cid: tag.  eg: <img src="cid:image.jpg">
-af <file>      : file containing list of binary file(s) to attach (comma
                  separated)
-atf <file>     : file containing list of text file(s) to attach (comma
                  separated)
-aef <file>     : file containing list of embed file(s) to attach (comma
                  separated)
*/



Last edited by garry on June 1st, 2009, 10:19 pm, edited 1 time in total.

Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 4th, 2007, 3:28 am 
Offline

Joined: July 16th, 2005, 11:39 am
Posts: 96
Kinda similar to an email client script that I was working on and then abandoned because my ISP blocks the SMTP port. I like your interface.

Some email servers that sell SPAM-blocking put flags in the email headers when SPAM is detected. If your server's email program does this, then you can take advantage of it by adding those flags to your filters, or running a telnet script to delete them.

_________________
“yields falsehood when preceded by its quotation” yields falsehood when preceded by its quotation.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 4th, 2007, 9:15 am 
Offline

Joined: April 19th, 2005, 10:26 am
Posts: 2250
Location: switzerland
thankyou Dragonscloud,
first time I tried telnet to send something (DOS window)
Quote:
C:\>telnet mail.bluewin.ch 25 ;command ( SMTP )

220 mail14.bluewin.ch ESMTP Service (Bluewin 7.3.121) ready
helo pop.bluewin.ch
250 mail14.bluewin.ch
mail from:garry1481a@bluewin.ch
250 MAIL FROM:<garry1481a@bluewin.ch> OK
rcpt to:garry1481a@bluewin.ch
250 RCPT TO:<garry1481a@bluewin.ch> OK
data
354 Start mail input; end with <CRLF>.<CRLF>
subject:test2 from telnet

Hello garry
how are you

.
250 <472EF4D1006728CB@mail14.bluewin.ch> Mail accepted
quit
221 mail14.bluewin.ch QUIT


Verbindung zu Host verloren.

C:\>


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 25th, 2008, 6:47 pm 
Offline

Joined: December 24th, 2007, 6:04 pm
Posts: 4
how to test it via telnet when it "Must issue a STARTTLS command first"?


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

All times are UTC [ DST ]


Who is online

Users browsing this forum: Bing [Bot] and 10 guests


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