Last active
December 18, 2015 09:29
-
-
Save mccxj/5762231 to your computer and use it in GitHub Desktop.
GTD everynote
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Set iMsg = CreateObject("CDO.Message") | |
Set iConf = CreateObject("CDO.Configuration") | |
Set Flds = iConf.Fields | |
schema = "http://schemas.microsoft.com/cdo/configuration/" | |
Flds.Item(schema & "sendusing") = 2 | |
Flds.Item(schema & "smtpserver") = "smtp.gmail.com" | |
Flds.Item(schema & "smtpserverport") = 465 | |
Flds.Item(schema & "smtpauthenticate") = 1 | |
Flds.Item(schema & "sendusername") = "EMAILADDRESS" | |
Flds.Item(schema & "sendpassword") = "PASSWORD" | |
Flds.Item(schema & "smtpusessl") = 1 | |
Flds.Update | |
With iMsg | |
.To = "Evernote-EMAIL" | |
.From = "EMAILADDRESS" | |
.Subject = wscript.arguments.item(0) | |
Set .Configuration = iConf | |
SendEmailGmail = .Send | |
End With |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment