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.
Public Sub SendAMessage(strFrom As String, strTo As String, _
strCC As String, strSubject As String, strTextBody As String, _
Optional strBcc As String, Optional strAttachDoc As String)
On Error GoTo MyErrorHadler
Set objMessage = New CDO.Message
With objMessage
.From = strFrom
.To = strTo
If Len(Trim$(strCC)) > 0 Then
.CC = strCC
End If
If Len(strBcc) > 0 Then
.BCC = strBcc
End If[green]
''' On behalf of
'.Sender = "Bill.Wolf@msn.com"[/green]
.Subject = strSubject
.TextBody = strTextBody
If Len(strAttachDoc) > 0 Then
.AddAttachment strAttachDoc
End If
With .Configuration.Fields
.Item(CDO.cdoSMTPServer) = [red]"NTSMTP.ABC.DEF.XYZ"[/red]
.Item(CDO.cdoSMTPServerPort) = 25
.Item(CDO.cdoSendUsingMethod) = CDO.cdoSendUsingPort
.Item(cdoSMTPConnectionTimeout) = 10
.Update
End With
.Send
End With
Set objMessage = Nothing
Exit Sub