
Originally Posted by
Rishi1022
So using this VBsendmail.dll, shall we read and send e-mails from outlook without getting the warning messages?
I guess I misunderstood your question. Outlook is not being used so it is not generating any warning messages. After the DLL is added the coding is just:
VB Code:
Set poSendMail = New clsSendMail
With poSendMail
.SMTPHost = "Mail.yourdomain.com"
.FromDisplayName = "The Widget Corporation"
.AsHTML = True
.Message = sBody
.Recipient = sTo
.Subject = "The WidgetCorporation - Patient Follow-ups for: " & Format(dCurrentDate, "MM/DD/YYYY")
.Send
End With
sBody and sTo are just strings I populated.