Page 1 of 1

email

Posted: 20 Aug 2011 02:37
by glob5
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.

Re: email

Posted: 20 Aug 2011 05:19
by renzlo
try using blat, http://www.blat.net

Re: email

Posted: 21 Aug 2011 20:39
by Batcher
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

Re: email

Posted: 21 Aug 2011 22:26
by joexyzrohr
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