Since most of our customers are helpdesk teams and IT-support departments, we will sometimes publish useful tips for IT pros on this blog.
This is how you set up a low-memory email alert on a Windows 2012 Server:
Set Msg = CreateObject("CDO.Message") With Msg .To = "MySelf@gmail.com" .From = "from@address.com" .Subject = "low memory" .TextBody = "low memory, check the server now" .Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2 .Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "mail.yourserver.com" .Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = 1 .Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25 .Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpusessl") = False .Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/sendusername") = "smtp-user" .Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/sendpassword") = "smtp-password" .Configuration.Fields.Update .Send End With