Email

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
paul.darsey
Posts: 20
Joined: 30 May 2011 18:44

Email

#1 Post by paul.darsey » 15 Sep 2011 18:40

How to create a batch file that will send an email to a named address.

nitt
Posts: 218
Joined: 22 Apr 2011 02:43

Re: Email

#2 Post by nitt » 15 Sep 2011 18:46

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).

paul.darsey
Posts: 20
Joined: 30 May 2011 18:44

Re: Email

#3 Post by paul.darsey » 15 Sep 2011 18:48

you would think you could just create command that uses local internet connections to send a simple email

nitt
Posts: 218
Joined: 22 Apr 2011 02:43

Re: Email

#4 Post by nitt » 15 Sep 2011 18:58

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.

dbenham
Expert
Posts: 2461
Joined: 12 Feb 2011 21:02
Location: United States (east coast)

Re: Email

#5 Post by dbenham » 15 Sep 2011 19:08

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.

phillid
Posts: 109
Joined: 03 Apr 2010 20:27
Location: Wellington, New Zealand
Contact:

Re: Email

#6 Post by phillid » 15 Sep 2011 23:11

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

nitt
Posts: 218
Joined: 22 Apr 2011 02:43

Re: Email

#7 Post by nitt » 19 Sep 2011 16:22

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.

Captcha142
Posts: 13
Joined: 18 Sep 2011 23:35

Re: Email

#8 Post by Captcha142 » 19 Sep 2011 17:54

Isn't this possible via telnet??

nitt
Posts: 218
Joined: 22 Apr 2011 02:43

Re: Email

#9 Post by nitt » 19 Sep 2011 18:28

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

lfp
Posts: 1
Joined: 01 Nov 2011 12:33

Re: Email

#10 Post by lfp » 10 Nov 2011 15:46

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.

Post Reply