Jump to content
Sign in to follow this  

Default e-mail software

Recommended Posts

:) How I call software email default passing as parameters the address, the subject and an attached archive?

Share this post

Link to post
Share on other sites

I have no idea what you mean but search the help file for _INetMail .


Thanks for reply, but _INetMail dont send attach file.

Share this post

Link to post
Share on other sites

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
'==SMTP Server Settings Complete=='

Edited by MSLx Fanboy

Writing AutoIt scripts since
_DateAdd("d", -2, _NowCalcDate())

Share this post

Link to post
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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...