email

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
glob5
Posts: 34
Joined: 23 Nov 2010 00:47

email

#1 Post by glob5 » 20 Aug 2011 02:37

I need to send email automatically from a batch file using outlook 2003. Used mailto and the outlook launches but waits for the SEND click. win7/dos.

renzlo
Posts: 116
Joined: 03 May 2011 19:06

Re: email

#2 Post by renzlo » 20 Aug 2011 05:19

try using blat, http://www.blat.net

Batcher
Posts: 74
Joined: 16 Apr 2009 10:36

Re: email

#3 Post by Batcher » 21 Aug 2011 20:39

Try following VBS from Microsoft

Code: Select all

Set objEmail = CreateObject("CDO.Message")
objEmail.From = "admin1@fabrikam.com"
objEmail.To = "admin2@fabrikam.com"
objEmail.Subject = "Server down"
objEmail.Textbody = "Server1 is no longer accessible over the network."
objEmail.Configuration.Fields.Item _
    ("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
objEmail.Configuration.Fields.Item _
    ("http://schemas.microsoft.com/cdo/configuration/smtpserver") = _
        "smarthost"
objEmail.Configuration.Fields.Item _
    ("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25
objEmail.Configuration.Fields.Update
objEmail.Send

joexyzrohr
Posts: 1
Joined: 21 Aug 2011 22:03

Re: email

#4 Post by joexyzrohr » 21 Aug 2011 22:26

I searched for a correct solution for automatic email sending, but as I know there's no way making it thus.
However if your clients, users generally visit a site in connection with your issue, or you're able to visit a site once a day (or once in a certain time period), then you can include a php script into that site.
Press Release Distribution

Post Reply