Batch + Telnet ?

Toshiba / Satellite m40
September 4, 2009 at 12:01:04
Specs: Linux Mint-xfce, 1.397 GHz / 958 MB
Just wondering Why this isn't working.
I like to prank friends & that Using smtp to send them emails.

But I've been typing them out in Telnet. And i came up with the idea of typing them in DOS, saving everything you type in as a Variable, then building it and putting it into Telnet to send.

I have searched this on the internet so please don't say stuff like that, I don't want to use Any of Third party software so don't even mention it lol.

I'm guessing it needs to enter 1 line at a time. Instead this is entering them at the same time, So any help would be great!
Heres my code for what i thought would work...

@ECHO OFF
SET /p ISP=Type your ISP smtp server:
SET /p Emailfrom=Type the Email you are sending FROM:
SET /p Emailto=Type Email to SEND TO:
SET /p Name=Type name sending Email from(for annonomous type 'Someone'):
SET /p Subject=Type a Subject:
SET /p Data4=Type information to go into main area of email:
SET Data1=From: "%Name%" <%Emailfrom%>
SET Data2=To: <%Emailto%>
SET Data3=Subject: %Subject%


Telnet
open smtp.%ISP% 25
helo send
mail from:<%Emailfrom%>
rcpt to:<%Emailto%>
data
%Data1%
%Data2%
%Data3%
echo.
%Data4%
.

******************************************
MSN = HardstyleMatt@hotmail.co.uk
Need help? Just ask. :)
******************************************


See More: Batch + Telnet ?

Report •


#1
September 4, 2009 at 12:03:22
Telnet does not use stdio, so you can not do what you want in batch.

Report •

#2
September 4, 2009 at 12:07:02
Damn quick answer!

Well, Is there a way to open DOS and Telnet at the same time, Then when you type the email to send too and press enter, It inputs it line by line into telnet with other info.

Example,
Type Email to SEND TO: blabla@bla.com
*enter*
In telnet it will enter
Mail from:<blabla@bla.com>

Then Telnet Enters that and moves on ?
any way of doing that you think ? :/

******************************************
MSN = HardstyleMatt@hotmail.co.uk
Need help? Just ask. :)
******************************************


Report •

#3
September 4, 2009 at 12:14:14
Not without some third party software.

Your best bet would be to use VBScript and CDO.Message


Report •

Related Solutions

#4
September 4, 2009 at 12:33:00
Ok thanks mate.
Was worth a try lol :)

******************************************
MSN = HardstyleMatt@hotmail.co.uk
Need help? Just ask. :)
******************************************


Report •


Ask Question