Hello all,
I am trying to write a prog that autamatically sends emails ...
Here is what I have done so far
In the module section I have put this:
Public Function SendEmail(email As String, subject As String, body As
String, attach As String)
Dim Mail As MailSender
Set Mail = New MailSender
Mail.Host = "relay.skynet.be"
Mail.From = "my*************@myprovider.be"
Mail.AddAddress (email)
Mail.subject = subject
Mail.body = body
Mail.AddAttachment (attach)
Mail.Send
End Function
Then in the program I assign values to the variables email,subject and body
Next I call the function ...
x = SendEmail(email, subject, body + Chr(13) + "Test", "c:\log.txt")
on running it I get this err-message:
User defined type not defined
How do I solve this , Can anybody help me with that ?
Any suggestions very much appreciated
Ronny Sigo