Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

email disclosure

Status
Not open for further replies.

quicksaab

Programmer
May 9, 2003
33
US
I want to attach an email disclosure to outgoing emails. I know you can buy 3rd party software, but I wanted to know If anyone had done a custom solution and what they did. I did a little research and I came up with the source below. It is essentially what I want to do. Think of it more as pseudo code than actual source.




Sub ISMTPOnArrival_OnArrival(ByVal Msg, EventStatus)

On Error Resume Next

Const cdoRunNextSink = 0
strBody = Msg.TextBody

Sub ISMTPOnArrival_OnArrival(ByVal Msg, EventStatus)

On Error Resume Next
strBody = strBody + ("This is the email Disclusure text")
End With
' save changes to the mail
Msg.Datasource.Save
' continue with the next event sink
EventStatus = cdoRunNextSink

End Sub

Thanks!

q
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top