On Error GoTo errHere
Dim oSMTP As OSSMTP.SMTPSession [COLOR="SeaGreen"]' --- Also tried [B]Public WithEvents oSMTP As OSSMTP.SMTPSession[/B]
in a CLS module[/COLOR]
Set oSMTP = New OSSMTP.SMTPSession [COLOR="SeaGreen"]' --- Or should I use [B]Set oSMTP = CreateObject("OSSMTP.SMTPSession")[/B][/COLOR]
With oSMTP
.Server = [COLOR="red"]My SMTP Server name[/COLOR]
.UserName = [COLOR="red"]My Login name[/COLOR]
.Password = [COLOR="red"]My Pass[/COLOR]
.Port = "25"
.Timeout = 60
.UseSSL = False
.AuthenticationType = 1 ' -- POP3
.POPServer = [COLOR="Red"]My POP3 Server name[/COLOR]
End With
oSMTP.SendTo = "tal@fuchs-family.me"
oSMTP.MailFrom = "fuchs_t@bezeqint.net"
oSMTP.MessageSubject = "Test"
oSMTP.MessageText = "Test Test Test"
oSMTP.SendEMail
Set oSMTP = Nothing
GoTo ExitHere