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") = "GMAIL USERNAME" Flds.Item(schema & "sendpassword") = "GMAIL PASSWORD" Flds.Item(schema & "smtpusessl") = 1 Flds.Update With iMsg .To = "e@xpenser.com" .From = "GMAIL USERNAME@gmail.com" .Subject = wscript.arguments.item(0) .TextBody = body .Sender = " " .Organization = " " .ReplyTo = " " Set .Configuration = iConf SendEmailGmail = .Send End With set iMsg = nothing set iConf = nothing set Flds = nothing