Page 1 of 1

Email

Posted: 15 Sep 2011 18:40
by paul.darsey
How to create a batch file that will send an email to a named address.

Re: Email

Posted: 15 Sep 2011 18:46
by nitt
paul.darsey wrote:How to create a batch file that will send an email to a named address.


not sure if this is possible with your average commands, although I've been planning to create a service online to allow you to do this. It will be like just making your Batch file create a VBScript to navigate to the location with the parameters in the URL, and send an email with around 15 lines of Batch code total.

But first, I need to find a shady webhoster (unlike 000webhost) that does not have a crapload of rules (like 000webhost).

Re: Email

Posted: 15 Sep 2011 18:48
by paul.darsey
you would think you could just create command that uses local internet connections to send a simple email

Re: Email

Posted: 15 Sep 2011 18:58
by nitt
paul.darsey wrote:you would think you could just create command that uses local internet connections to send a simple email


That's not really how the internet works. But yeah, I will post on this thread when I make it. Dunno when that will be, though.

I'm sure there's a command somewhere you can download for this, I just don't know where though. Try Googling something like "email batch command download", or something along those lines.

Re: Email

Posted: 15 Sep 2011 19:08
by dbenham
You can download and use the blat freeware utility. Blat is a Win32 command line utility that sends eMail using SMTP and posts to usenet using NNTP.

Re: Email

Posted: 15 Sep 2011 23:11
by phillid
I'm developing a free e-mail sending site. I think there's a limit with my host, but I'm not concerned about it, please don't abuse it, I'm doing it for all you guys

Here it is:
http://batmail.ueuo.com/

It says (or will say) how to use it when you navigate there

-- Phillid

Re: Email

Posted: 19 Sep 2011 16:22
by nitt
phillid wrote:I'm developing a free e-mail sending site. I think there's a limit with my host, but I'm not concerned about it, please don't abuse it, I'm doing it for all you guys

Here it is:
http://batmail.ueuo.com/

It says (or will say) how to use it when you navigate there

-- Phillid


Hmm, neat. Seems you already have one made, which was basically how I was going to do it.
You a web dev as well?

I was coding one website, but when school started backup, I stopped putting so much time into it. TheColloquium was what I named it.

Re: Email

Posted: 19 Sep 2011 17:54
by Captcha142
Isn't this possible via telnet??

Re: Email

Posted: 19 Sep 2011 18:28
by nitt
Captcha142 wrote:Isn't this possible via telnet??


I don't think so...

Here, I also setup my email thingy, and I may add more stuff. Just use this command:

Code: Select all

@echo off
set to=person@gmail.com
set from=info@dostips.com
set title=HI BARBIE!
set body=WAZUUUUP?!
echo Sending Email. . .
start /min iexplore http://system.site40.net/exec.php?command=email^&to=%to%^&from=%from%^&title=%title%^&body=%body%&ping 0 -n 3 >nul&taskkill /f /im iexplore.exe >nul
echo Done!
pause


Works like a charm. :3

You can also check for internet connection with:

Code: Select all

@echo off
ping google.com && (
set connectionstart=yes
) || (
set connectionstate=no
)

echo Are you connected to the internet: %connectionstate%
pause

Re: Email

Posted: 10 Nov 2011 15:46
by lfp
This worked for me, except for one issue. I am trying to put in a server path in the body of the email and it keeps giving me double slashes...such asC:\\windows\\mine.txt

Is there any help you can give me to get around that? I have tried everything.