I need an Active x script to send emails to addresses that are listed in a view then update a related table with getdate() once the email has been sent.
Basically the view will find the employees in a particular department from employeetbl were that department has updated news from the noticestbl. Then we need to loop through each record of the view sending and updating for each.
the view has these fields:
DepartmentID
EmployeeID
EmployeeName
EmailAddress
NewsSubject
NewsFilePath
NewsSigniture
The email needs to be:
sent from = fixed address
sent to = [EmailAddress]
subject = [DepartementID]": "[NewsSubject]
HTML email body = "fixed greating"[EmployeeName]"<br>[NewsFilePath]....
I currently have a DTS running an active x script that emails the whole view in an html table to an email address and I have been trying unsuccessfully to modify this code to meet my needs.
Any help would be greatly appreciated.
Thanks
William Cope
Basically the view will find the employees in a particular department from employeetbl were that department has updated news from the noticestbl. Then we need to loop through each record of the view sending and updating for each.
the view has these fields:
DepartmentID
EmployeeID
EmployeeName
EmailAddress
NewsSubject
NewsFilePath
NewsSigniture
The email needs to be:
sent from = fixed address
sent to = [EmailAddress]
subject = [DepartementID]": "[NewsSubject]
HTML email body = "fixed greating"[EmployeeName]"<br>[NewsFilePath]....
I currently have a DTS running an active x script that emails the whole view in an html table to an email address and I have been trying unsuccessfully to modify this code to meet my needs.
Any help would be greatly appreciated.
Thanks
William Cope