If you clients have Win 2K or Higher OS then you can use CDO (Microsoft
Collaboration Data Objects) to sent the mail.
Public Sub testCDO()
' Purpose Send an Email with or without an attachment without using
Outlook or other MAPI client
' Uses Late Binding - Does not need a reference to the Microsoft
CDO For Windows library
Const cdoSendUsingPort = 2
Const cdoBasic = 1
Dim objCDOConfig As Object, objCDOMessage As Object
Dim strSch As String
strSch = "
http://schemas.microsoft.com/cdo/configuration/"
Set objCDOConfig = CreateObject("CDO.Configuration")
With objCDOConfig.Fields
.Item(strSch & "sendusing") = cdoSendUsingPort
.Item(strSch & "smtpserver") = "YourMailServer.com"
'Only used if SMTP server requires Authentication
'.Item(strSch & "smtpauthenticate") = cdoBasic
'.Item(strSch & "sendusername") = "
[email protected]"
'.Item(strSch & "sendpassword") = "YourPassword"
.Update
End With
Set objCDOMessage = CreateObject("CDO.Message")
With objCDOMessage
Set .Configuration = objCDOConfig
.FROM = "Ron"
.sender = "
[email protected]"
.To = "
[email protected]"
.Subject = "Sample CDO Message"
'.TextBody = "This is a test for CDO.message"
.HTMLBody = "this is not Bold But <B>This is!</B>"
'.AddAttachment "c:\Inv83595.pdf"
'.AddAttachment "c:\Inv83596.pdf"
'.MDNRequested = True
.Send
End With
Set objCDOMessage = Nothing
Set objCDOConfig = Nothing
End Sub
Otherwise you have to install an ActiveX control and use that. You can find
a bunch of em here:
http://www.freedownloadscenter.com/Best/free-smtp-ocx.html
Ron W
www.WorksRite.com