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 :
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 ✌
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.txtNow 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"



![[Image: 0UhKI.gif]](https://i.imgur.com/0UhKI.gif)