Jump to content

Default e-mail software


 Share

Recommended Posts

A simple COM object in VB Script will though

VB Code:

Set objMessage = CreateObject("CDO.Message")
'==Email Settings=='
    objMessage.Subject = "Test Message"
    objMessage.Sender = "Anonymous User <bob@anonymous.com>"
    objMessage.To = "user@domain.com"
    objMessage.AddAttachment ""
    objMessage.TextBody = "This is a test message."
'==Email Settings Complete=='

'==Do Not Edit Below This Line=='
'==STMP Server Settings=='
    objMessage.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
    objMessage.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "mail.cait.scps.k12.fl.us"
    objMessage.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = cdoNone 'can also be Basic or NTLM
    objMessage.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25
    objMessage.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout") = 60
    objMessage.Configuration.Fields.Update
'==SMTP Server Settings Complete=='

objMessage.Send
Edited by MSLx Fanboy

Writing AutoIt scripts since

_DateAdd("d", -2, _NowCalcDate())
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...