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

Shell 

How to sand an E-mail from CMD [ Ya, That's true! from CMD] O_O

W all know batch can't send email, but in some ways YES it can! For that we need a little program called "SMTP Mailer".

You download this from here.

After downloading, unzip it and Copy the "SmtpMail.exe" to C:\

Now Open CMD. Type the following code in the following manner:

Code
C:\SmtpMail.exe server=smtp.gmail.com [email protected] [email protected] [email protected] password=PasswordHere ssl license=2012012527a4e3fdef4603a9d8af106c4f84c73c subject="THE SUBJECT" body="YOUR Message Here"

Spoiler (Click to View)

Now hit enter and you're done! It works! Here's a screenshot:

[img]http://img811.imageshack.us/img811/5503/cmdo.png[/img]

Enjoy! ✌
Metalhead
Why don't you just make a batch file that writes a vbs file that can email?
(Dec 25, 2011 12:11 AM)Charon Wrote:  Why don't you just make a batch file that writes a vbs file that can email?

Because I Don't Know VBS and by this you can send mail directly from CMD. 🙂
Metalhead
(Dec 25, 2011 12:13 AM)TheNeutron Wrote:  Because I Don't Know VBS and by this you can send mail directly from CMD. 🙂

Assuming it's in an Environment location or System32 folder unless the full path is identified. But the executable needs to stay with the script no matter what.
Getting Started: C/C++
[C/C++/.NET/x86 ASM - Automation Programmer]
(Dec 25, 2011 12:24 AM)0xDEAD10CC Wrote:  Assuming it's in an Environment location or System32 folder unless the full path is identified. But the executable needs to stay with the script no matter what.

Yup that's right. Executable must stay in the script or it won't work.... 😉
Metalhead
Thanks, been looking for this.

To short to post
In the land of the blind, the one-eyed man is king
Blood makes you related, but loyalty makes you family
(Dec 26, 2011 05:51 PM)SIM-1073426 Wrote:  Thanks, been looking for this.

To short to post

Welcome. :)

Glad it was helpful... 🤝
Metalhead
(Dec 25, 2011 12:24 AM)0xDEAD10CC Wrote:  Assuming it's in an Environment location or System32 folder unless the full path is identified. But the executable needs to stay with the script no matter what.

You could always download the executable via VBScript, or encode it and rebuild the binary in VBScript.
[Image: ed8URKg.jpg]

(Dec 27, 2011 04:35 AM)iGnite Wrote:  You could always download the executable via VBScript, or encode it and rebuild the binary in VBScript.

Or just forget the EXE altogether and do the whole thing in VBScript.
(Dec 28, 2011 10:23 AM)White Light Wrote:  Or just forget the EXE altogether and do the whole thing in VBScript.

I agree; Since the executable appears to use SMTP anyway, and that's already usable in VBScript. :) i <3 VBScript
[Image: ed8URKg.jpg]



Possibly Related Threads...
Thread / Author Replies Views Last Post
[.NET] by timm1292May 7, 2016 03:42 PM 11 330 May 7, 2016 03:42 PM
Last Post: Oscura
[C] by 570703Sep 8, 2015 03:01 AM 4 201 Sep 8, 2015 03:01 AM
Last Post: 570703
[.NET] by BrokeosDec 24, 2013 07:09 AM 16 356 Dec 24, 2013 07:09 AM
Last Post: Brokeos