Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
'REQUIRES MICROSOFT CDO LIBRARY INCLUSION
Public Function SendOneEMailViaCDO(strBody As String, _
strTo As String, _
strFrom, _
strBCC, _
strSubject As String, _
bolHighImportance As Boolean) As Boolean
Const ROUTINE_NAME = "SendOneEMailViaCDO"
Dim bolResults As Boolean
Dim strServerName As String
strServerName = "PUT YOUR SERVER NAME HERE"
bolResults = True
Dim objCDOMsg As CDO.Message
Dim objCDOConfiguration As CDO.Configuration
Set objCDOMsg = CreateObject("CDO.Message")
Set objCDOConfiguration = CreateObject("CDO.Configuration")
With objCDOConfiguration
.Fields.Item("urn:schemas:mailheader:X-Mailer") = "Microsoft CDO for Windows 2000"
.Fields(cdoSendUsingMethod) = 2 'cdoSendUsingPort
.Fields(cdoSMTPServer) = strServerName
.Fields(cdoSMTPAuthenticate) = 0 'cdoAnonymous
.Fields(cdoSMTPServerPort) = 25
.Fields(cdoSMTPConnectionTimeout) = 10
'message headers
'.Fields.Item("urn:schemas:mailheader:date") = "Tue, 6 Oct 2005 11:15:08 -0700"
'.Fields("Date") = "Tue, 6 Oct 2005 11:15:08 -0700"
'.Fields.Update
'.Fields.Resync
If bolHighImportance = True Then
.Fields(cdoImportance) = cdoHigh 'cdoHigh 'High importance
.Fields("urn:schemas:mailheader:X-MSMail-Priority") = "High" 'cdoHigh
.Fields("urn:schemas:mailheader:X-Priority") = 2
Else
.Fields(cdoImportance) = cdoNormal 'High importance
.Fields("urn:schemas:mailheader:X-MSMail-Priority") = cdoNormal
.Fields("urn:schemas:mailheader:X-Priority") = 5
End If
.Fields.Update
End With
Set objCDOMsg.Configuration = objCDOConfiguration
With objCDOMsg
.MimeFormatted = False
.AutoGenerateTextBody = False
.To = strTo
.From = strFrom
.Subject = strSubject
.HTMLBody = strBody
If bolHighImportance = True Then
'.Fields(cdoImportance) = cdoHigh
Else
'.Fields(cdoImportance) = cdoNormal
End If
.Fields.Update
.Send
End With
Set objCDOMsg = Nothing
Set objCDOConfiguration = Nothing
ExitRoutine:
End Function
Call SendOneEmailViaCDO("Hello, this is the body", "yourboss@yourcompany.com", "yourname@yourcompany.com", "Someone@yourcompany.com", "A witty subject", false)