I am currently using Version 1.1.25.01
The following is the source code:
Code: Select all
pmsg := ComObjCreate("CDO.Message")
pmsg.From := """from"" <@gmail.com>"
pmsg.To := ""
pmsg.BCC := "" ; Blind Carbon Copy, Invisible for all, same syntax as CC
pmsg.CC := "" ; [email protected], [email protected]
pmsg.Subject := "See below"
;pmsg.TextBody := ""
pmsg.HtmlBody := "<html><head><title>Hello</title></head><body><table border='1'><tr><td>row 1, cell 1</td><td>row 1, cell 2</td></tr><tr><td>row 2, cell 1</td><td>row 2, cell 2</td></tr></table> </body></html>"
;sAttach := "" ; can add multiple attachments, the delimiter is |
fields := Object()
fields.smtpserver := "smtp.gmail.com" ; specify your SMTP server
fields.smtpserverport := 465 ; 25
fields.smtpusessl := True ; False
fields.sendusing := 2 ; cdoSendUsingPort
fields.smtpauthenticate := 1 ; cdoBasic
fields.sendusername := "@gmail.com"
fields.sendpassword := ""
fields.smtpconnectiontimeout := 60
schema := "http://schemas.microsoft.com/cdo/configuration/"
pfld := pmsg.Configuration.Fields
For field,value in fields
pfld.Item(schema . field) := value
pfld.Update()
Loop, Parse, sAttach, |, %A_Space%%A_Tab%
pmsg.AddAttachment(A_LoopField)
pmsg.Send()
return
I got the source here: https://autohotkey.com/board/topic/2114 ... d-library/
Saved it in a file called com.ahk in the same directory as the script and used: #include filepath/com.ahk
I get this error when I run it:
I've gone to the link: http://schemas.microsoft.com/cdo/configuration/ which doesnt work.
I'm really confused and would love help.
Thanks.