User home
System help
Ask a question
Search help
   Help system Content Search
Article content
Send an Email message using CDOSYS and Google Apps mail servers
Classic ASP example:

Dim ObjSendMail
Set ObjSendMail = CreateObject("CDO.Message") 
'This section provides the configuration information for the remote SMTP server.
ObjSendMail.Configuration.Fields.Item ("") = 2 'Send the message using the network (SMTP over the network).
ObjSendMail.Configuration.Fields.Item ("") =""
ObjSendMail.Configuration.Fields.Item ("") = 465 ' or 587
ObjSendMail.Configuration.Fields.Item ("") = True
ObjSendMail.Configuration.Fields.Item ("") = 60
' Google apps mail servers require outgoing authentication. Use a valid email address and password registered with Google Apps.
ObjSendMail.Configuration.Fields.Item ("") = 1 'basic (clear-text) authentication
ObjSendMail.Configuration.Fields.Item ("") ="" 'your Google apps mailbox address
ObjSendMail.Configuration.Fields.Item ("") ="yourpassword" 'Google apps password for that mailbox
ObjSendMail.To = ""
ObjSendMail.Subject = "this is the subject"
ObjSendMail.From = ""
' we are sending a text email.. simply switch the comments around to send an html email instead
'ObjSendMail.HTMLBody = "this is the body"
ObjSendMail.TextBody = "this is the body"
Set ObjSendMail = Nothing 
© Copyright 2018 Doka management panel