Please advise syntax for add attachment and CC (email recipient) on vbscript
following is my program :
=============================================
Dim oSmtp
Set oSmtp = CreateObject("EASendMailObj.Mail")
oSmtp.LicenseCode = "TryIt"
oSmtp.ServerAddr = "smtp.gmail.com"
' Set User Authentication
oSmtp.UserName = "xxx@gmail.com"
oSmtp.Password = "xxx"
' Enable TLS Connection
oSmtp.SSL_init
oSmtp.SSL_starttls = 1
oSmtp.Subject = "test for ssl"
oSmtp.BodyText = "test body"
oSmtp.FromAddr = "xxx@gmail.com"
oSmtp.AddRecipient "Support Team", "xxx@gmail.com", 0
If oSmtp.SendMail() = 0 Then
msgbox "Message delivered"
Else
msgbox oSmtp.GetLastErrDescription()
End If
oSmtp.SSL_uninit