User Tools

Site Tools


autoit:codes:telnetmail

Mail via Telnet

This Script sends a Mail via Telnet automatically. I used this to test some things when I set up postfix. Edit the hostname and the mailaddresses

mailviatelnet.au3
Sleep(5000)
Send("#r")
Sleep(500)
Send("cmd")
Sleep(500)
Send("{enter}")
Sleep(500)
Send("telnet mailserver.lunetikk.de 25")
Sleep(500)
Send("{enter}")
Sleep(8000)
Send("helo")
Sleep(500)
Send("{enter}")
Sleep(500)
Send("mail from:lunetikk@lunetikk.de")
Sleep(500)
Send("{enter}")
Sleep(500)
Send("rcpt to:lunetikk@lunetikk.de")
Sleep(500)
Send("{enter}")
Sleep(500)
Send("data")
Sleep(500)
Send("{enter}")
Sleep(500)
Send("subject:")
Sleep(5000)
Send("{enter}")
Sleep(500)
Send("{enter}")
Sleep(500)
Send("This is a test")
Sleep(500)
Send("{enter}")
Sleep(500)
Send("{enter}")
Send(".")
Sleep(500)
Send("{enter}")



autoit/codes/telnetmail.txt · Last modified: 2018/12/20 17:43 by lunetikk