Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

Shell 

SMTP/POP3 mail server using batch

Greetings,

I was wondering how to send an e-mail from cmd using a batch code.
Well I've made some researches and I've found that we need to install specific programs in the win32 folder in order to do that.

Now considering that I do not want any extra programs to be installed, can I still make an SMTP or POP3 mail server and send e-mails. Let me give an example to more explicit :

Code
@echo off
(set /p line1=
set /p line2=)<txtfile.txt

Now let's say I want to send an automatically email that contains %line1% and %line2% with a batch code in the same bat file of this last code here, is that possible ?

In conclusion how to I set up SMTP server (or POP3) that works in every computer the bat file is opened ?

Thank you in advance ✌


And God said : - "Science wins"
Hi, there's a few different approaches to doing this, and none of them involve installing a program. :>

First off, in pure batch, your only option is telnet which may or may not be installed on the machine (It comes with windows but its an optional component).
You can also echo out to VBscript or Powershell to do it. Check this page for an authentication-less example:
https://hackforums.net/showthread.php?ti...id39510582
(Apr 21, 2014 08:24 PM)annikk.exe Wrote:  ...and none of them involve installing a program. :>

https://hackforums.net/showthread.php?ti...id39510582

Greetings,

Well you're right. Per example, Telnet comes by default with windows we just need to enable it.

I've checked the code, actually it's very clear. The only part that I doubt is it only works for SMTP servers that do not require authentication. Anyway, I do not think that code is still useful for me, since I took the decision to make it with Telnet which I didn't want initially, and for the moment everything's working fine.

Thank you for your answer and for your time annikk.exe. ✌


And God said : - "Science wins"


Possibly Related Threads...
Thread / Author Replies Views Last Post
[Shell] by Robert RougeSep 24, 2026 10:02 AM 4 221 Sep 24, 2026 10:02 AM
Last Post: Anonynuk
[Shell] by fisica638Oct 30, 2019 11:05 AM 1 536 Oct 30, 2019 11:05 AM
Last Post: Hackoo
[Shell] by mrck10Sep 5, 2017 12:08 PM 3 428 Sep 5, 2017 12:08 PM
Last Post: LegoStoppro